Why doesn't the following work in NetBeans while it works in Greenfoot and in JCreator?
In Greenfoot and NetBeans the JComponents looks like the other ones on my computer but in NetBeans they have the Java metal L&F. I usually put the above code in the main method:
but it didn't work in NetBeans so I tried putting it in the beginning and the end of the constructor but it still had the Java L&F.
try
{
// Set System L&F
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (UnsupportedLookAndFeelException e)
{
// handle exception
}
catch (ClassNotFoundException e)
{
// handle exception
}
catch (InstantiationException e)
{
// handle exception
}
catch (IllegalAccessException e)
{
// handle exception
}public static void main(String[] args)
