-
Bug
-
Resolution: Fixed
-
P2
-
5.0, 5.0u9, 6
-
b07
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2144270 | 6u1 | Igor Kushnirskiy | P3 | Resolved | Fixed | b01 |
JDK-2144269 | 5.0u11 | Igor Kushnirskiy | P3 | Resolved | Fixed | b02 |
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TBCBTest extends JFrame {
public TBCBTest() {
super("TBCBTest");
JToolBar tb = new JToolBar();
tb.add(new JCheckBox("One"));
tb.add(new JCheckBox("Two"));
tb.add(new JCheckBox("Three"));
add(tb, BorderLayout.NORTH);
}
private static void createAndShowGUI(String[] args) {
TBCBTest test = new TBCBTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
test.pack();
test.setLocationRelativeTo(null);
test.setVisible(true);
}
public static void main(final String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception e) {
}
createAndShowGUI(args);
}
});
}
}
The problem goes away if you use the -Dswing.noxp flag.
- backported by
-
JDK-2144269 REGRESSION: JCheckBox doesn't show on JToolBar under Windows L&F
-
- Resolved
-
-
JDK-2144270 REGRESSION: JCheckBox doesn't show on JToolBar under Windows L&F
-
- Resolved
-
- duplicates
-
JDK-6517334 Icon radio buttons have negative size in Windows L&F
-
- Closed
-
- relates to
-
JDK-6349010 REGRESSION: XP L&F: on jdk 1.6, preferred size of JToggleButton in JToolbar on winxp is wrong.
-
- Resolved
-
-
JDK-6497146 Vista Look&feel: Buttons and check boxes not visible on Java Control Panel
-
- Closed
-
-
JDK-6497781 Should use Prop.CONTENTMARGINS instead of Prop.SIZINGMARGINS
-
- Closed
-