How To: Set The Native Look And Feel
For Java Applications

To make your Java Frames and JFrames look like Microsoft Windows windows in 95/98/Me/NT/2000/XP, and look like Apple windows on Macs, etc., use the following statement in main:

  public static void main(String[] args)
  {
    try{UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch(Exception e){}
    ...
  }