|
I created a new Frame in Eclipse to test what HS said,
public static void main(String[] args)
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
//JFrame.setDefaultLookAndFeelDecorated(true);
try
{
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.setLookAndFeel(javax.swing.plaf.metal.MetalLookAndFeel);//added
}
catch .........
But the error says
java.lang.Error: Unresolved compilation problem:
javax.swing.plaf.metal.MetalLookAndFeel cannot be resolved
Is this how else ah? ? ? ? Thanks in advance! |
|