public void setLookAndFeel(){
    try{
      //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
      UIManager.setLookAndFeel("javax.swing.plaf.mac.MacLookAndFeel");
      SwingUtilities.updateComponentTreeUI(this);
    }catch(Exception ex){
      System.out.print("Failed!");
    }
  }
当采用windows风格的时候,是好的;
当采用mac风格是,却打印“Failed”!