Java tutorial
//package com.java2s; import java.awt.*; public class Main { public static void changeComonentOrientation(Component[] components, ComponentOrientation orientation) { for (Component c : components) { c.setComponentOrientation(orientation); if (c instanceof java.awt.Container) changeComonentOrientation(((java.awt.Container) c).getComponents(), orientation); } } }