private static boolean setCrossPlatformLookAndFeel()
{
- boolean set = false;
- try
- {
- UIManager.setLookAndFeel(
- UIManager.getCrossPlatformLookAndFeelClassName());
- set = true;
- } catch (Exception ex)
- {
- Cache.log.error("Unexpected Look and Feel Exception");
- Cache.log.error(ex.getMessage());
- Cache.log.debug(Cache.getStackTraceString(ex));
- }
- return set;
+ return setGenericLookAndFeel(false);
}
private static boolean setSystemLookAndFeel()
{
+ return setGenericLookAndFeel(true);
+ }
+
+ private static boolean setGenericLookAndFeel(boolean system)
+ {
boolean set = false;
try
{
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ UIManager.setLookAndFeel(
+ system ? UIManager.getSystemLookAndFeelClassName()
+ : UIManager.getCrossPlatformLookAndFeelClassName());
set = true;
} catch (Exception ex)
{