java look and feel

查看可用的look and feel

for(LookAndFeelInfo lnf:UIManager.getInstalledLookAndFeels()){
    System.out.println(lnf);
}


更改look and feel (在这个控件里面的其他控件也成为这种look and feel)
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");//""里面的是look and feel 的名字,可以从第一步得到
SwingUtilities.updateComponentTreeUI(this);

你可能感兴趣的:(LookAndFeel)