swingJframe界⾯风格
⽤法:在jframe⾥⾯
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
1、Metal风格 (默认) String lookAndFeel = "javax.al.MetalLookAndFeel"; UIManager.setLookAndFee(lookAndFeel);
2、Windows风格 String lookAndFeel = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; UIManager.setLookAndFee (lookAndFeel);
3、Windows Classic风格 String lookAndFeel = "com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"; UIManager.setLookAndFeel(lookAndFeel);
4、Motif风格 String lookAndFeel = "com.sun.java.if.MotifLookAndFeel"; UIManager.setLookAndFeel(lookAndFeel);
5、Mac风格 (需要在相关的操作系统上⽅可实现) String lookAndFeel = "com.sun.java.swing.plaf.mac.MacLookAndFeel"; UIManager.setLookAndFeel(lookAndFeel);
6、GTK风格 (需要在相关的操作系统上⽅可实现) String lookAndFeel = "com.sun.java.k.GTKLookAndFeel"; UIManager.setLookAndFeel(lookAndFeel);
7、可跨平台的默认风格 String lookAndFeel = CrossPlatformLookAndFeelClassName(); UIManager.setLookAndFeel (lookAndFeel);
javaswing实现购买8、当前系统的风格 String lookAndFeel = SystemLookAndFeelClassName(); UIManager.setLookAndFeel(lookAndFeel);
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论