-
Bug
-
Resolution: Cannot Reproduce
-
P5
-
None
-
1.0.2, 1.1.5
-
generic, sparc
-
solaris_2.5.1
The label of the Checkbox is left-aligned on Solaris but centered on Win95. This makes it difficult to align controls on multi-platforms because of this difference.
Here is a small testcase:
import java.awt.*;
public class CheckAlign extends Frame
{
public CheckAlign()
{
super("Radio Button Alignment Test");
Panel p = new Panel();
p.setLayout(new FlowLayout());
CheckboxGroup cg = new CheckboxGroup();
p.add(new Checkbox("small", cg, false));
p.add(new Checkbox("medium", cg, false));
p.add(new Checkbox("large", cg, false));
add("Center",p);
resize(400, 200);
show();
}
public static void main (String[] args)
{
new CheckAlign();
}
}
Name: rrT76497 Date: 05/06/98
ecj May 06,98.
======================================================================
Here is a small testcase:
import java.awt.*;
public class CheckAlign extends Frame
{
public CheckAlign()
{
super("Radio Button Alignment Test");
Panel p = new Panel();
p.setLayout(new FlowLayout());
CheckboxGroup cg = new CheckboxGroup();
p.add(new Checkbox("small", cg, false));
p.add(new Checkbox("medium", cg, false));
p.add(new Checkbox("large", cg, false));
add("Center",p);
resize(400, 200);
show();
}
public static void main (String[] args)
{
new CheckAlign();
}
}
Name: rrT76497 Date: 05/06/98
ecj May 06,98.
======================================================================
- duplicates
-
JDK-4097316 Checkbox text alignment
- Closed
- relates to
-
JDK-4807801 On Solaris text of checkboxes is centred, on Windows text is left-aligned
- Open