How do I use the default look and feel of the system my app is running on?

By Alvin J. Alexander, devdaily.com

Import the necessary class:

import javax.swing.UIManager;

Then use this code:

  UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

devdaily logo