try
{
javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
javax.swing.SwingUtilities.updateComponentTreeUI(frame);
frame.setStatusText("Using Metal.");
} catch (Exception ex)
{
frame.setStatusText("Failed loading Metal L&F.");
}