Forums Register Login

get all application components and change their orientation

+Pie Number of slices to send: Send
hi,

i m trying to make a RTL version of an existing software.
i wonder what is the most efficient way to change all GUI component's orientation to RIGHT_TO_LEFT?
is it possible to code a function that would search all my source code file for Components, and when found, change their orientation?

Thanks,
Tizki
+Pie Number of slices to send: Send
a recursive function should do it
pass the frame's getComponents() to the method
set each component RTL
check if component instance of Container
if so, pass its getComponents() to the method
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 868 times.
Similar Threads
Change the Printer Orientation??
Cell size in JList
Print in LANDSCAPE orientation ????
BeanInfo - HORIZONTAL and VERTICAL instead of 0 and 1
Disadvanteges of android:configChanges="orientation|keyboardHidden"
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:03:16.