mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Update path.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6212 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -112,31 +112,6 @@ 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();
|
String classname = UIManager.getSystemLookAndFeelClassName();
|
||||||
|
|
||||||
@ -164,6 +139,33 @@ public final class Spark {
|
|||||||
Log.error(e);
|
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.openIcon", SparkRes.getImageIcon(SparkRes.FOLDER));
|
||||||
UIManager.put("Tree.closedIcon", SparkRes.getImageIcon(SparkRes.FOLDER_CLOSED));
|
UIManager.put("Tree.closedIcon", SparkRes.getImageIcon(SparkRes.FOLDER_CLOSED));
|
||||||
UIManager.put("Button.showMnemonics", Boolean.TRUE);
|
UIManager.put("Button.showMnemonics", Boolean.TRUE);
|
||||||
|
|||||||
Reference in New Issue
Block a user