1.
muiwindow.addActionListener(new ActionListener(){//window模式
public void actionPerformed(ActionEvent e){
String plaf = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
try{
UIManager.setLookAndFeel(plaf);
SwingUtilities.updateComponentTreeUI(MainForm.this);
SwingUtilities.updateComponentTreeUI(ad);
}
catch(Exception e1){
}
}
});
2.
//MacOS 较喜欢
/*
UIManager.setLookAndFeel(new it.unitn.ing.swing.plaf.macos.MacOSLookAndFeel());
*/
muiwindow.addActionListener(new ActionListener(){//window模式
public void actionPerformed(ActionEvent e){
String plaf = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
try{
UIManager.setLookAndFeel(plaf);
SwingUtilities.updateComponentTreeUI(MainForm.this);
SwingUtilities.updateComponentTreeUI(ad);
}
catch(Exception e1){
}
}
});
2.
//MacOS 较喜欢
/*
UIManager.setLookAndFeel(new it.unitn.ing.swing.plaf.macos.MacOSLookAndFeel());
*/
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货