* 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,20 +12,18 @@ import java.awt.FileDialog;
import java.awt.Frame;
/**
* A rather nasty AWT file chooser dialog (thanks, Kaffe!) which allows the user
* to select their preferred browser with.
* A simple file chooser dialog.
*
* @author hypercubus
*/
public class BrowserChooser extends FileDialog {
public BrowserChooser(Frame owner, String windowTitle) {
super(owner, windowTitle);
initialize();
}
public BrowserChooser(Frame owner, String windowTitle) {
super(owner, windowTitle);
initialize();
}
public void initialize(){
this.setSize(300,400);
public void initialize(){
this.show();
}
}
}

View File

@ -32,7 +32,7 @@ public class SysTray implements SysTrayMenuListener {
private SysTrayMenuItem _itemExit = new SysTrayMenuItem("Exit systray", "exit");
private SysTrayMenuItem _itemSelectBrowser = new SysTrayMenuItem("Select preferred browser...", "selectbrowser");
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() {
_sysTrayMenuIcon.addSysTrayMenuListener(this);
@ -79,6 +79,8 @@ public class SysTray implements SysTrayMenuListener {
_itemSelectBrowser = null;
_sysTrayMenuIcon = null;
_sysTrayMenu = null;
_browserChooser = null;
_frame = null;
System.exit(0);
} else if (e.getActionCommand().equals("selectbrowser")) {
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