Community
Participate
Working Groups
It seems that the out-of-box orientation support for Swing components can be improved by making pretty simple changes to the underlying Java code: (1) Call java.awt.Component#applyComponentOrientation (available since JDK 1.4) instead of setComponentOrientation. (2) Apply container's orientation not earlier than all its children are added to the content pane. (3) Eliminate any absolute horizontal positioning: e.g. if using BorderLayout, replace BorderLayout.WEST by BorderLayout.LINE_END and BorderLayout.EAST BorderLayout.LINE_START. Can these be implemented? As a side note, it would be nice if java.awt.Window#pack() is called before the Window is set visible.
> replace BorderLayout.WEST by BorderLayout.LINE_END and BorderLayout.EAST > BorderLayout.LINE_START. Sorry: replace BorderLayout.WEST by BorderLayout.LINE_START and BorderLayout.EAST by BorderLayout.LINE_END.