2010. 6. 30. 14:27
자바로 UI를 개발하면 기존에 사용하던 윈도우 포맷과 틀려서 거부감이 들때가 있었다. 뭐 그래서 SWT를 찾아 공부도 하고했지만.. look and feel 이라는 넘이 존재하더라.. 이넘 언제부터 나온건지 모름..

기본적으로 윈도우 포맷에 맞춰서 보여주는 코드..

Example
try {
// Set cross-platform Java L&F (also called "Metal")
    UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());
}
catch (UnsupportedLookAndFeelException e) {
   // handle exception
}
catch (ClassNotFoundException e) {
   // handle exception
}
catch (InstantiationException e) {
   // handle exception
}
catch (IllegalAccessException e) {
   // handle exception
}


Posted by 짱가쟁이