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

On Solaris text of checkboxes is centred, on Windows text is left-aligned

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      sparc
    • OS:
      solaris_8

      Description



      Name: dk106046 Date: 01/24/2003

      On Solaris, the text of the checkboxes appears centred, whereas on Windows the text is left-aligned. This causes problems when trying to design platform-neutral user interfaces.

      Fails on all releases up to 1.4.2.

      See 4023127, 4097316 - both closed

      A workaround was posted as a comment to Sun Bug 4023127, and a potential fix was posted to 4097316, however this fix is no longer applied.

      Testcase:

      import java.awt.*;

      public class AWTRadioAlign extends Frame
      {
        public AWTRadioAlign()
        {
          super("Radio Button Alignment Test");

          Panel p = new Panel();
          p.setLayout(new GridLayout(3,1));
          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);
          setSize(200, 400);

          show();
        }
        public static void main (String[] args)
        {
          new AWTRadioAlign();
        }
      }


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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              art Artem Ananiev
              Reporter:
              dkorbel David Korbel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:
                Indexed: