SPARK-1293

JGoodies as selectable LaF
JTattoo as selectable LaF, checkout JTattooLuna, i think we might have a winrar ;-)

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12282 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Wolf Posdorfer
2011-04-26 15:48:50 +00:00
committed by wolf.posdorfer
parent fd7a7aa36e
commit 567cc46566
6 changed files with 63 additions and 23 deletions

View File

@ -26,9 +26,11 @@ import java.awt.EventQueue;
import java.awt.Font;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.HashSet;
import java.util.Locale;
import java.util.Properties;
import javax.swing.BorderFactory;
import javax.swing.JDialog;
@ -259,6 +261,19 @@ public final class Spark {
} catch (Exception e) {
Log.error(e);
}
if(laf.contains("jtattoo"))
{
Properties props = new Properties();
props.put("logoString", "Spark");
try {
Class<?> c = ClassLoader.getSystemClassLoader().loadClass(laf);
Method m = c.getMethod("setCurrentTheme", Properties.class);
m.invoke(c.newInstance(), props);
} catch (Exception e) {
Log.error("Error Setting JTattoo ", e);
}
}
installBaseUIProperties();
}