JDK-6664881 : Nimbus L&F: JToggleButton does not honor contentAreaFilled
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-02-19
  • Updated: 2011-02-16
  • Resolved: 2008-03-05
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.

To download the current JDK release, click here.
JDK 6
6u10 b13Fixed
Description
JToggleButton doesn't honor contentAreaFilled boolean on both Nimbus and GTK. Looking in SynthToggleButtonUI, the paintBackground method should check to see whether contentAreaFilled is true before painting.

Comments
EVALUATION Description is accurate. Simple fix, simply add a check for contentAreaFilled to paintBackground of SynthToggleButtonUI. SynthButtonUI has this check, SynthToggleButtonUI overrides this method from SynthButtonUI but fails to do the check.
19-02-2008