-
Bug
-
Resolution: Incomplete
-
P3
-
None
-
8
-
sparc_64
-
solaris_10
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
SunOS oates 5.10 Generic_150400-30 sun4v sparc SUNW,SPARC-Enterprise-T5120 Solaris
A DESCRIPTION OF THE PROBLEM :
Our application is using swing. We built a 3D look button using a rectangle with a gradient fill. Since java 1.8, the color of a button is completely changed.
We use MetalLookAndFeel.
I can email the screen capture of our application.
REGRESSION. Last worked in version 7u80
ADDITIONAL REGRESSION INFORMATION:
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
public static void fill3DGradient( Graphics g, int x, int y, int w, int h,
Color dark, Color light )
{
Graphics2D g2 = (Graphics2D) g;
Paint oldPaint = g2.getPaint(); // Make no net change to g
g.translate(x, y);
g2.setPaint(new GradientPaint(
0, 0, dark,
0, h/3, light
)
);
g2.fillRect( 0, 0, w-1, (h-1)/3 );
g2.setPaint(
new GradientPaint(
0, h/3, light,
0, h, dark
)
);
g2.fillRect( 0, (h-1)/3, w-1, h-1 - ((h-1)/3) );
g2.setPaint( oldPaint );
g.translate(-x, -y);
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it is better to show you the screen capture.
REPRODUCIBILITY :
This bug can be reproduced always.
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
SunOS oates 5.10 Generic_150400-30 sun4v sparc SUNW,SPARC-Enterprise-T5120 Solaris
A DESCRIPTION OF THE PROBLEM :
Our application is using swing. We built a 3D look button using a rectangle with a gradient fill. Since java 1.8, the color of a button is completely changed.
We use MetalLookAndFeel.
I can email the screen capture of our application.
REGRESSION. Last worked in version 7u80
ADDITIONAL REGRESSION INFORMATION:
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
public static void fill3DGradient( Graphics g, int x, int y, int w, int h,
Color dark, Color light )
{
Graphics2D g2 = (Graphics2D) g;
Paint oldPaint = g2.getPaint(); // Make no net change to g
g.translate(x, y);
g2.setPaint(new GradientPaint(
0, 0, dark,
0, h/3, light
)
);
g2.fillRect( 0, 0, w-1, (h-1)/3 );
g2.setPaint(
new GradientPaint(
0, h/3, light,
0, h, dark
)
);
g2.fillRect( 0, (h-1)/3, w-1, h-1 - ((h-1)/3) );
g2.setPaint( oldPaint );
g.translate(-x, -y);
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it is better to show you the screen capture.
REPRODUCIBILITY :
This bug can be reproduced always.