Update path.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6212 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-11-22 15:31:51 +00:00
committed by derek
parent 3e3c767790
commit ecc9099f66

View File

@ -112,32 +112,7 @@ public final class Spark {
}
}
buf.append(classPath);
// Update System Properties
System.setProperty("java.library.path", buf.toString());
System.setProperty("sun.java2d.noddraw", "true");
SwingUtilities.invokeLater(new Runnable() {
public void run() {
// Start Application
new Spark();
}
});
// Handle arguments
if (args.length > 0) {
argument = args[0];
}
}
// Setup the look and feel of this application.
static {
try {
try {
String classname = UIManager.getSystemLookAndFeelClassName();
if (classname.indexOf("Windows") != -1) {
@ -164,6 +139,33 @@ public final class Spark {
Log.error(e);
}
buf.append(classPath);
// Update System Properties
System.setProperty("java.library.path", buf.toString());
System.setProperty("sun.java2d.noddraw", "true");
SwingUtilities.invokeLater(new Runnable() {
public void run() {
// Start Application
new Spark();
}
});
// Handle arguments
if (args.length > 0) {
argument = args[0];
}
}
// Setup the look and feel of this application.
static {
UIManager.put("Tree.openIcon", SparkRes.getImageIcon(SparkRes.FOLDER));
UIManager.put("Tree.closedIcon", SparkRes.getImageIcon(SparkRes.FOLDER_CLOSED));
UIManager.put("Button.showMnemonics", Boolean.TRUE);