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

Swing components embedded in FX SwingNode need to track node orientation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11, 8, jfx21, jfx22
    • javafx
    • None

      As a developer, I would expect that Swing components embedded in an FX SwingNode should inherit the node orientation (both initial and also the runtime changes) of the parent Scene and/or parent SwingNode. (Perhaps a listener to the SwingNode's nodeOrinetation property needs to be added that does applyComponentOrientation to its content).

      Instead, the swing components appear to be mirrored (including the text in JTextArea).

      To reproduce, run this code and click on 'right-to-left (FX Scene.NodeOrientation) checkbox.

      (this issue might be related to JDK-8317836)

            kcr Kevin Rushforth
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: