在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();
}

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2022-02-25
  • 2023-03-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案