The UIManager.setLookAndFeel(String className)
Loads the LookAndFeel
specified by the given class name:className
, using the current thread's context class loader.
To set look and feel of your current system, make use of UIManager.getSystemLookAndFeelClassName()
: Returns the name of the LookAndFeel
class that implements the native system look and feel if there is one, otherwise the name of the default cross platform LookAndFeel
class.
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
put this code before you create instance of your application window: JFrame
or any such Top-level Container.