我想实现 Acryl Look and Feel,当我只运行文件时它运行良好,但是当我运行 Main Project 时它返回默认的 l&F。
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);
}