How can I change default orientation of swing to RTL? All components of my application must be RTL and I need to change default orientation to RTL.
I know we can change Component orientation by this line:
Component.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
But if I do this, I must change orietation of all buttons, textfields, ... one by one. My question just is how change default orientation of swing (maybe by use of UIDefaults).
If I can't do this, please say best way to implement such project. (All of components must be RTL)
for example we can see solution of changing default FONT in swing here: Setting the Default Font of Swing Program
Im looking for same solution for ORIENTATION.