Cleaned up examples
This commit is contained in:
parent
3fe57cd10d
commit
146afbf949
@ -56,7 +56,8 @@ class TestTray {
|
||||
|
||||
public
|
||||
TestTray() {
|
||||
this.systemTray = SystemTray.getNative();
|
||||
this.systemTray = SystemTray.get();
|
||||
// this.systemTray = SystemTray.getNative();
|
||||
if (systemTray == null) {
|
||||
throw new RuntimeException("Unable to load SystemTray!");
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ class TestTrayJavaFX extends Application {
|
||||
}
|
||||
|
||||
private SystemTray systemTray;
|
||||
private ActionListener callbackGreen;
|
||||
private ActionListener callbackGray;
|
||||
|
||||
public
|
||||
@ -90,6 +89,7 @@ class TestTrayJavaFX extends Application {
|
||||
|
||||
|
||||
this.systemTray = SystemTray.get();
|
||||
// this.systemTray = SystemTray.getNative();
|
||||
if (systemTray == null) {
|
||||
throw new RuntimeException("Unable to load SystemTray!");
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ class TestTraySwt {
|
||||
}
|
||||
|
||||
private SystemTray systemTray;
|
||||
private ActionListener callbackGreen;
|
||||
private ActionListener callbackGray;
|
||||
|
||||
public
|
||||
@ -75,6 +74,7 @@ class TestTraySwt {
|
||||
|
||||
|
||||
this.systemTray = SystemTray.get();
|
||||
// this.systemTray = SystemTray.getNative();
|
||||
if (systemTray == null) {
|
||||
throw new RuntimeException("Unable to load SystemTray!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user