-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b99
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b97)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b97, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
When using the Windows XP Look&Feel, the text of disabled JRadioButtons and JCheckBoxes is displayed in black, while it should be displayed in grey. As a result the user can only tell from the icon if a component is enabled or not. Also this is inconsistent with the native Windows XP look and feel, which also paints text of disabled radio buttons and check boxes in grey color.
A picture would say more than a million words, but unfortunately it is not possible to attachm images to bug reports.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the test case on Windows XP. With JDK 1.6 the text of the buttons is black, while with JDK 1.5 the text is black.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The text on the buttons should be grey
ACTUAL -
The text is black
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;
public class Test {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex) {
ex.printStackTrace();
}
JFrame frame = new JFrame("Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(new GridLayout(0, 1));
JRadioButton jRadioButton = new JRadioButton("Disabled");
jRadioButton.setEnabled(false);
frame.add(jRadioButton);
JCheckBox jCheckBox = new JCheckBox("Disabled");
jCheckBox.setEnabled(false);
frame.add(jCheckBox);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
Release Regression From : 5.0u8
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b97)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b97, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
When using the Windows XP Look&Feel, the text of disabled JRadioButtons and JCheckBoxes is displayed in black, while it should be displayed in grey. As a result the user can only tell from the icon if a component is enabled or not. Also this is inconsistent with the native Windows XP look and feel, which also paints text of disabled radio buttons and check boxes in grey color.
A picture would say more than a million words, but unfortunately it is not possible to attachm images to bug reports.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the test case on Windows XP. With JDK 1.6 the text of the buttons is black, while with JDK 1.5 the text is black.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The text on the buttons should be grey
ACTUAL -
The text is black
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;
public class Test {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex) {
ex.printStackTrace();
}
JFrame frame = new JFrame("Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(new GridLayout(0, 1));
JRadioButton jRadioButton = new JRadioButton("Disabled");
jRadioButton.setEnabled(false);
frame.add(jRadioButton);
JCheckBox jCheckBox = new JCheckBox("Disabled");
jCheckBox.setEnabled(false);
frame.add(jCheckBox);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
Release Regression From : 5.0u8
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- relates to
-
JDK-6390630 WinLAF: JButtons on XP have text with wrong color / missing shadow using certain 3rd party themes
- Resolved