Lazy load renderer.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6342 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-12-08 18:27:56 +00:00
committed by derek
parent fe17ff2b79
commit 7f124d1347
5 changed files with 16 additions and 6 deletions

View File

@ -119,14 +119,14 @@ public final class Spark {
JFrame.setDefaultLookAndFeelDecorated(true);
File skinDir = new File(Spark.getBinDirectory().getParent(), "xtra/skins").getAbsoluteFile();
File defaultSkin = new File(skinDir, "crystal2themepack.zip");
//Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
Skin theSkinToUse = SkinLookAndFeel.loadThemePackDefinition(new File("c:\\crapola\\crystal\\skinlf-themepack.xml").toURL());
File defaultSkin = new File(skinDir, "crystal.zip");
Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
SkinLookAndFeel.setSkin(theSkinToUse);
// finally set the Skin Look And Feel
UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
UIManager.setLookAndFeel(new SkinLookAndFeel());
//UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
}
else if (classname.indexOf("mac") != -1 || classname.indexOf("apple") != -1) {
UIManager.setLookAndFeel(classname);