我想要實現亞克力外觀和感覺,當我只運行文件,它運行良好,但是當我運行主項目則返回默認升& F.要實現jtattoo的外觀和感覺,但沒有工作
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
/*if ("Windows".equals(info.getName())) {
* javax.swing.UIManager.setLookAndFeel(info.getClassName());
* break;
* }*/
UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(LoginForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
你意識到你正在設置n次? – nachokk
任何錯誤/例外? –
沒有錯誤或例外 – user2622609