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

Component orientation in JOptionPane is not proper in Motif L&F.

XMLWordPrintable

      JAVA VERSION :-
      ----------------
      java version "1.6.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b04)
      Java HotSpot(TM) Client VM (build 1.6.0-beta-b04, mixed mode)


      STEPS TO REPRODUCE :-
      ----------------------
      1. SET the JAVA_HOME to the above specified java version.

      2. Compile and execute the attached the test in MotifLookAndFeel and other LookAndFeel.
      For example -
      java -Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel Test.

      3. You can see the difference. In other look and feels the labels as well as buttons in JOptionPane is aligned as per the Component Orientation. While in Motif LookAndFeel only the buttons are aligned as per component orientation whereas the labels are not.

      4. See attached image.

      EXPECTED BEHAVIOUR :-
      ---------------------
      Both labels and buttons in JOptionPane should be aligned as per component orientation.

      ACTUAL BEHAVIOUR :-
      -------------------
      In JOptionPane, only buttons are aligned as per component orientation and not the labels.


      ###@###.### 2004-09-27

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: