让swing使用苹果风格的皮肤
1.先倒入jar包,quaqua.jar
2.在main方法里,窗口实例化前加上
JFrame.setDefaultLookAndFeelDecorated(true);
try{
UIManager.setLookAndFeel(“ch.randelshofer.quaqua.QuaquaLookAndFeel”);
} catch(Exception e){
e.printStackTrace();
}
java使用苹果风格的皮肤
最新推荐文章于 2021-02-23 23:46:59 发布