* fixed a bug causing the systray to hang upon exit on Linux

* various nips and tucks all around
This commit is contained in:
hypercubus
2004-08-20 14:36:03 +00:00
committed by zzz
parent ffff6d701f
commit 80b8c284b4
4 changed files with 13 additions and 13 deletions

View File

@ -12,8 +12,7 @@ import java.awt.FileDialog;
import java.awt.Frame; import java.awt.Frame;
/** /**
* A rather nasty AWT file chooser dialog (thanks, Kaffe!) which allows the user * A simple file chooser dialog.
* to select their preferred browser with.
* *
* @author hypercubus * @author hypercubus
*/ */
@ -25,7 +24,6 @@ public class BrowserChooser extends FileDialog {
} }
public void initialize(){ public void initialize(){
this.setSize(300,400);
this.show(); this.show();
} }
} }

View File

@ -32,7 +32,7 @@ public class SysTray implements SysTrayMenuListener {
private SysTrayMenuItem _itemExit = new SysTrayMenuItem("Exit systray", "exit"); private SysTrayMenuItem _itemExit = new SysTrayMenuItem("Exit systray", "exit");
private SysTrayMenuItem _itemSelectBrowser = new SysTrayMenuItem("Select preferred browser...", "selectbrowser"); private SysTrayMenuItem _itemSelectBrowser = new SysTrayMenuItem("Select preferred browser...", "selectbrowser");
private SysTrayMenuIcon _sysTrayMenuIcon = new SysTrayMenuIcon("../icons/iggy"); private SysTrayMenuIcon _sysTrayMenuIcon = new SysTrayMenuIcon("../icons/iggy");
private SysTrayMenu _sysTrayMenu = new SysTrayMenu(_sysTrayMenuIcon, "I2P Console"); private SysTrayMenu _sysTrayMenu = new SysTrayMenu(_sysTrayMenuIcon, "I2P Router Console");
public SysTray() { public SysTray() {
_sysTrayMenuIcon.addSysTrayMenuListener(this); _sysTrayMenuIcon.addSysTrayMenuListener(this);
@ -79,6 +79,8 @@ public class SysTray implements SysTrayMenuListener {
_itemSelectBrowser = null; _itemSelectBrowser = null;
_sysTrayMenuIcon = null; _sysTrayMenuIcon = null;
_sysTrayMenu = null; _sysTrayMenu = null;
_browserChooser = null;
_frame = null;
System.exit(0); System.exit(0);
} else if (e.getActionCommand().equals("selectbrowser")) { } else if (e.getActionCommand().equals("selectbrowser")) {
setBrowser(promptForBrowser("Select preferred browser")); setBrowser(promptForBrowser("Select preferred browser"));

View File

@ -1 +1 @@
java -cp systray4j.jar;. -Djava.library.path=. SysTray java -cp systray4j.jar;. -Djava.library.path=. -jar systray.jar

View File

@ -1 +1 @@
java -cp systray4j.jar:. -Djava.library.path=. SysTray java -cp systray4j.jar:. -Djava.library.path=. -jar systray.jar