JDK-6500302 : GTKLAF:Check mark/bullet is not visible for selected checkbox & radio menu items in disabled state.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0u11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • CPU: sparc
  • Submitted: 2006-12-04
  • Updated: 2011-02-16
  • Resolved: 2007-01-27
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.
Other
5.0u12 b01Fixed
Description
BugInfo:
========
Check mark/bullet is not visible for JCheckBoxMenuItem/JRadioButtonMenuItem in disabled state for 5.0U11-b01 build.
It was working fine with jdk6.0 b104.

Please find the attached jpg file for reference.

JDK Info:
=========
java -version
java version "1.5.0_11-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-ea-b01)
Java HotSpot(TM) Client VM (build 1.5.0_11-ea-b01, mixed mode)

Steps to Reproduce:
===================
1. Download the attached tar file and extract.
2. Run the MenuLAFDemo.java file.
3. Click on LookAndFeel menu and choose the GTK look and feel.
4. Click on DisabledItems menu.

Expected Result:
================
The DisabledCheckBoxItem and DisabledRadioItem should show the checkmark and bullet with grayed out.

ActualResults:
===============
The DisabledCheckBoxItem and DisabledRadioItem are not showing the checkmark and bullet.There is no difference between selected item and non selected item in the disabled state.

Comments
EVALUATION SynthMenuItemUI.getComponentState doesn't take into account the SELECTED state of an item but just returns if it's DISABLED. We should also correctly recompute the component state in GTKLookAndFeel.synthStateToGTKState method to return DISABLE for disable menuitems. We need this action for choosing the correct color of the text.
07-12-2006

EVALUATION It's old style GTK L&F. There should be some problems with GTKParser. In modern version of GTK L&F (jdk 6.0) this problem doesn't exist because all such issues are handled by the native layer.
05-12-2006