mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
wolf.posdorfer
parent
fd7a7aa36e
commit
567cc46566
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user