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

JSpinner setComponentOrientation doesn't affect on text orientation

    Details

    • Subcomponent:
    • Introduced In Version:
      7
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      generic

      Description

      See attached Test.java:

      There are 3 JSpinners with SpinnerNumberModel, SpinnerListModel and SpinnerDateModel

      1. run test (componentOrientation set to ComponentOrientation.RIGHT_TO_LEFT)
      Actual behaviour: text for SpinnerDateModel and SpinnerListModel is left aligned
      Expected behaviour: text in all JSpinners is RIGHT aligned

      2. Change test: replace ComponentOrientation.RIGHT_TO_LEFT to ComponentOrientation.LEFT_TO_RIGHT and run again
      Actual behaviour: same as in first case
      Expected behaviour: text in all JSpinners is LEFT aligned


      the issue repoduced on Windows, Linux and Mac platforms: failed with jdk 7 since fcs and passed with jdk6u41b01
      see comments for more details


        Activity

        Hide
        vdyakov Victor Dyakov added a comment -
        These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9.
        Kind regards,
        Mathias
        Show
        vdyakov Victor Dyakov added a comment - These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. Kind regards, Mathias
        Hide
        vdyakov Victor Dyakov added a comment -
        These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9.
        Kind regards,
        Mathias
        Show
        vdyakov Victor Dyakov added a comment - These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. Kind regards, Mathias
        Hide
        alexsch Alexander Scherbatiy added a comment -
        "componentOrientation" event does not update the spinner UI
        Show
        alexsch Alexander Scherbatiy added a comment - "componentOrientation" event does not update the spinner UI
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/0fba5bf459d1
        User: alexsch
        Date: 2014-02-24 13:26:25 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/0fba5bf459d1 User: alexsch Date: 2014-02-24 13:26:25 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/0fba5bf459d1
        User: lana
        Date: 2014-03-25 20:49:04 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/0fba5bf459d1 User: lana Date: 2014-03-25 20:49:04 +0000

          People

          • Assignee:
            alexsch Alexander Scherbatiy
            Reporter:
            vakulova Vera Akulova (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: