2014-01-29 1 views
0

Netbeans 플랫폼에서 작업 중이며 아랍어를 지원하므로 모든 구성 요소가 오른쪽에서 왼쪽이어야합니다. 내 질문은 모든 구성 요소 오리 엔테이션을 Netbeans 플랫폼에서 RTL로 만드는 방법이며, Netbeans 플랫폼을 언어 전환기 (영어, 아랍어)로 만드는 방법입니다. 감사합니다. .netbeans 플랫폼 변경 방향 아랍어 지원

+0

https://blogs.oracle.com/geertjan/entry/netbeans_platform_7_3_in – user3248198

+0

이 페이지 도와주세요. – user3248198

+0

https://blogs.oracle.com/geertjan/entry/tips_for_arabic_java_desktop – user3248198

답변

0

당신이 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; 

      } 
     } 
    }