문제

I am working on Netbeans platform, and I want to support Arabic language, so all components should be right to left. My question is how to make all components orientation is RTL in Netbeans platform, and how to make Netbeans platform is language switcher (English, Arabic). Thanks .

올바른 솔루션이 없습니다

다른 팁

you could use it if you have components inside panels inside contentPane

        Component[] component = contentPane.getComponents();
    for(int i=0; i<component.length; i++){
        component[i].applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        Component[] cp = ((Container) component[i]).getComponents();
        for(int j=0; j<cp.length; j++){
            try{
                ((Component) ((JComboBox) cp[j]).getRenderer()).applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
            }catch(Exception e){
                continue;

            }
        }
    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top