Here you can find the source of lookLikeSystem()
public static void lookLikeSystem()
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; public class Main { /**/*from w w w . j ava 2s . c o m*/ * Sets the GUI to look like the systems standard GUI. */ public static void lookLikeSystem() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } } }