-
Bug
-
Resolution: Fixed
-
P5
-
1.1.6, 1.2.0, 1.2.2, 1.3.0
-
beta
-
generic, x86
-
generic, windows_98, windows_nt
Name: diC59631 Date: 08/13/98
1. Bring up the swing-1.1beta SwingSet demo (Metal L&F).
2. Select "RadioButtons" tab.
3. Click on RadioButtons that has text labels.
Notice how the rectangle indicating focus is
painted 1 pixel right of it what it should.
Same for CheckBoxes, but not for ordinary Buttons
nor ToggleButtons.
Platform:
swing-1.1beta, Metal L&F
Windows NT 4.0 SP3
JavaSoft JDK 1.1.6
JIT Update for JDK 1.1.6 Software, Early Access 2
(Review ID: 36584)
======================================================================
Name: skT88420 Date: 01/10/2000
java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)
Focus borders around JRadioButtons step on the first few pixel of the
button text, instead of allowing a left-side margin equal to the one that
appears on the right side between the focus border and the text. This can be
seen in the Java Tutorial example code RadioButtonDemo.java. Here is a minimal
version:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class RadioButtonDemo{
public static void main(String s[]) {
JFrame frame = new JFrame("RadioButtonDemo");
Container content = frame.getContentPane();
content.setLayout(new FlowLayout());
content.add(new JRadioButton("Bird"));
content.add(new JRadioButton("Dog"));
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
});
frame.pack();
frame.setVisible(true);
}
}
I have only run this in the Metal L&F. While it doesn't seem like a big deal,
at small font sizes (11 or 12pt, bold), it is obvious. Large font sizes don't
have the problem.
(Review ID: 99312)
======================================================================
- duplicates
-
JDK-4202001 Focus rectangle on radiobuttons is too small for Metal L&F
-
- Closed
-
-
JDK-4451895 JCheckBox or JRadioButton - first character of the text is overlap by the line
-
- Closed
-