zoukankan      html  css  js  c++  java
  • swing下 改变窗口样式为windows风格(swing控件样式不美观解决方案)

    在windows环境下可以用下面两种方法使窗口显示windows风格窗口!

                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");


    public static void main(String[] args) {
             try
             {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");


               }catch(Exception e)
               {}
               new MyFrame();
    }

  • 相关阅读:
    token
    id
    vim
    http_proxy
    brew
    认证
    go
    linux 磁盘管理
    vmware
    vmware fusion
  • 原文地址:https://www.cnblogs.com/jishu/p/1968990.html
Copyright © 2011-2022 走看看