The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
test closed/javax/swing/plaf/synth/SynthPainter/unitTest/UnitTest.java fails with an exception
see comments
Comments
EVALUATION
The SynthMenuItemUI#update method paints background for JMenuItem via the SynthPainter#paintMenuItemBackground method and enters to the SynthGraphicsUtils#paintMenuItem method that paints background again via the SynthPainter#paintMenuItemBackground method. It is a performance problem, because the background is painted twice.
The SynthMenuUI#update method paints background for JMenu via the SynthPainter#paintMenuBackground method and enters to the SynthGraphicsUtils#paintMenuItem method that paints background again via the SynthPainter#paintMenuItemBackground method. This is a problem described in the CR: the SynthPainter#paintMenuBackground method should be used for every instance of the JMenuItem which is the instance of the JMenu too.
Anyway, the second painter should be removed.
10-02-2011
EVALUATION
JMenu/JMenuItem background is painted twice.
We should remove extra paint method.
10-02-2011
EVALUATION
Seems it is a regression after the 6584657 fix.