Friday

Sử dụng "Window" Look and Feel


Sử dụng window look and feel trong swing. 
 
 
// Get the currently installed look and feel
LookAndFeel lf = UIManager.getLookAndFeel();

// Install a different look and feel; specifically, the Windows look and feel
try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (InstantiationException e) {
} catch (ClassNotFoundException e) {
} catch (UnsupportedLookAndFeelException e) {
} catch (IllegalAccessException e) {
}

0 comments:

Post a Comment