core java中说在/jdk/jre/lib目录下有文件swing.properties文件,可是找不到这个文件?……how to

解决方案 »

  1.   

    public static void main(String[] args) {
        try {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
          //UIManager.setLookAndFeel("com.sum.java.swing.plaf.motif.MotifLookAndFeel");
        }
        catch(Exception e) {
          e.printStackTrace();
        }
        new Application1();
      }