-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.5
-
sparc
-
solaris_2.5.1
Name: mf23781 Date: 12/05/97
import java.awt.*;
public class checkbox extends Frame {
public checkbox() {
super("Checkbox");
setLayout(new GridLayout(3,1));
CheckboxGroup g = new CheckboxGroup();
add(new Checkbox("name 1", g, false));
add(new Checkbox("my next choice", g, false));
add(new Checkbox("last", g, false));
}
static public void main(String args[]) {
checkbox cb = new checkbox();
cb.resize(170,150);
cb.show();
}
}
The text on Checkbox items is centre-aligned on Solaris but
left-aligned on Win32. The latter seems more appropriate so I've
changed our AIX port to do this. The fix is simple:
in src/solaris/sun/awt_Checkbox.c add:
XtSetArg(args[argc], XmNalignment, XmALIGNMENT_BEGINNING); argc++;
to the bunch of XtSetArg(..) lines in
sun_awt_motif_MCheckboxPeer_create().
======================================================================
- duplicates
-
JDK-4023127 jdk1.0.2, labels on Checkbox different on Solaris and Win95.
- Closed
- relates to
-
JDK-4807801 On Solaris text of checkboxes is centred, on Windows text is left-aligned
- Open