Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4023127

jdk1.0.2, labels on Checkbox different on Solaris and Win95.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, sparc
    • OS:
      solaris_2.5.1

      Description

      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.


      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rramsunw Ranganathan Ram (Inactive)
              Reporter:
              gvanassesunw Gunter Vanasse (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: