Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get all application components and change their orientation

 
Tizki Ko
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic