How do I set my application to use the "metal" look and feel?

By Alvin J. Alexander, devdaily.com

Import the necessary classes:

import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;

Then put this in your code:

  UIManager.setLookAndFeel( new MetalLookAndFeel() );

devdaily logo