|
@@ -23,6 +23,7 @@ import de.schlichtherle.truezip.file.TFile;
|
|
|
import de.schlichtherle.truezip.file.TFileReader;
|
|
|
import java.awt.Desktop;
|
|
|
import java.awt.EventQueue;
|
|
|
+import java.awt.Image;
|
|
|
import java.io.BufferedOutputStream;
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.File;
|
|
@@ -40,8 +41,8 @@ import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.prefs.Preferences;
|
|
|
+import javax.imageio.ImageIO;
|
|
|
import javax.swing.JTextArea;
|
|
|
-import org.apache.commons.cli.AlreadySelectedException;
|
|
|
import org.apache.commons.cli.CommandLine;
|
|
|
import org.apache.commons.cli.CommandLineParser;
|
|
|
import org.apache.commons.cli.DefaultParser;
|
|
@@ -107,7 +108,7 @@ public class Main extends javax.swing.JFrame
|
|
|
private static UIPlugin selectedUIPlugin;
|
|
|
private static FirstRunScreen frs;
|
|
|
|
|
|
-
|
|
|
+ private static Image playListIcon;
|
|
|
|
|
|
/**
|
|
|
* Creates new form Builder
|
|
@@ -160,7 +161,16 @@ public class Main extends javax.swing.JFrame
|
|
|
|
|
|
processCommandLine(args);
|
|
|
setupLogging();
|
|
|
-
|
|
|
+
|
|
|
+ try
|
|
|
+ {
|
|
|
+ playListIcon = ImageIO.read(new File(IZPLApi.APPDIR+File.separator+"res"+File.separator+"program.png"));
|
|
|
+ }
|
|
|
+ catch (IOException ex)
|
|
|
+ {
|
|
|
+ System.out.println("Failed to load Icon");
|
|
|
+ ex.printStackTrace();
|
|
|
+ }
|
|
|
String time = new Date(System.currentTimeMillis()).toString();
|
|
|
System.out.println("IZPL-Loader:Bootstrapped at:" + time);
|
|
|
/* Set the Nimbus look and feel */
|
|
@@ -189,6 +199,7 @@ public class Main extends javax.swing.JFrame
|
|
|
java.awt.EventQueue.invokeLater(() ->
|
|
|
{
|
|
|
frs = new FirstRunScreen();
|
|
|
+ frs.setIconImage(playListIcon);
|
|
|
frs.setVisible(true);
|
|
|
});
|
|
|
}
|
|
@@ -214,6 +225,7 @@ public class Main extends javax.swing.JFrame
|
|
|
{
|
|
|
final Main b = new Main();
|
|
|
pload.setIndeterminate(true);
|
|
|
+ b.setIconImage(playListIcon);
|
|
|
b.setVisible(true);
|
|
|
|
|
|
new Thread(() ->
|
|
@@ -510,7 +522,7 @@ public class Main extends javax.swing.JFrame
|
|
|
@SuppressWarnings("element-type-mismatch")
|
|
|
private static void initializePlugins()
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
new File(IZPLApi.PLUGINPATH).mkdirs();
|
|
|
if(!detectedSkins.contains(selectedSkinPath))
|
|
|
{
|
|
@@ -530,7 +542,7 @@ public class Main extends javax.swing.JFrame
|
|
|
}
|
|
|
if(!allowPluginLoad)
|
|
|
quickQuit();
|
|
|
-
|
|
|
+
|
|
|
if (selectedSkinPath.equals("default"))
|
|
|
{
|
|
|
selectedSkinPath = IZPLApi.DEFAULT_SKIN_PATH;
|
|
@@ -964,6 +976,11 @@ public class Main extends javax.swing.JFrame
|
|
|
{
|
|
|
return detectedSkins;
|
|
|
}
|
|
|
+
|
|
|
+ public static Image getPlayListIcon()
|
|
|
+ {
|
|
|
+ return playListIcon;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/*
|