Java 中设置默认的样式
Java 中设置默认的样式
- private void setLF() {
- // Force SwingApp to come up in the System L&F
- String laf = UIManager.getSystemLookAndFeelClassName();
- try {
- // System.out.println("========================"+laf);
- UIManager.setLookAndFeel(laf);
- } catch (UnsupportedLookAndFeelException exc) {
- System.err.println("Warning: UnsupportedLookAndFeel: " + laf);
- } catch (Exception exc) {
- System.err.println("Error loading " + laf + ": " + exc);
- }
- }
评论暂时关闭