You might try this. First get all of the look and feels supported, and then try them out to see.
Code:
private void setLook()
{
UIManager.LookAndFeelInfo looks[] =
Manager.getInstalledLookAndFeels();
try
{
UIManager.setLookAndFeel(looks[3].getClassName());
SwingUtilities.updateComponentTreeUI(this);
}
catch(InstantiationException ie)
{
}
catch(ClassNotFoundException cnf_e)
{
}
catch(IllegalAccessException ia_e)
{
}
catch(UnsupportedLookAndFeelException ulf_e)
{
}
catch(ArrayIndexOutOfBoundsException aoob_e)
{
}
finally
{
this.setDefaultLookAndFeelDecorated(true);
}
}
What this does is manually selects the look and feel from all installed look and feels. It could be that the look you are looking for is not installed.
Rich Gomez
Bookmarks