Hi,
In my application, earlier when we were using JDK 1.5 we had options for changing theme like we had options to change the look And Feel to Eclipse, Office, Xerto etc.
We did this in the following way
if(newTheme.equalsIgnoreCase("Eclipse"))
{
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.ECLIPSE_STYLE);
LookAndFeelFactory.setDefaultStyle(LookAndFeelFactory.ECLIPSE_STYLE);
try
{
UIManager.setLookAndFeel(EclipseWindowsLookAndFeel.class.getName());
}
catch (Exception e)
{
e.printStackTrace();
}
}
This was with old jars of Jide.Now i am using evaluation version of Jide.
Looking at the jide documentation in the old jars, now im trying to do it this way
if(newTheme.equalsIgnoreCase("Eclipse"))
{
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.ECLIPSE_STYLE);
LookAndFeelFactory.setDefaultStyle(LookAndFeelFactory.ECLIPSE_STYLE);
try
{
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
catch (Exception e)
{
e.printStackTrace();
}
}
But some how it is not working as expected. Please advice