Cleaned up examples

This commit is contained in:
nathan 2016-10-24 01:53:01 +02:00
parent 3fe57cd10d
commit 146afbf949
3 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,8 @@ class TestTray {
public public
TestTray() { TestTray() {
this.systemTray = SystemTray.getNative(); this.systemTray = SystemTray.get();
// this.systemTray = SystemTray.getNative();
if (systemTray == null) { if (systemTray == null) {
throw new RuntimeException("Unable to load SystemTray!"); throw new RuntimeException("Unable to load SystemTray!");
} }

View File

@ -61,7 +61,6 @@ class TestTrayJavaFX extends Application {
} }
private SystemTray systemTray; private SystemTray systemTray;
private ActionListener callbackGreen;
private ActionListener callbackGray; private ActionListener callbackGray;
public public
@ -90,6 +89,7 @@ class TestTrayJavaFX extends Application {
this.systemTray = SystemTray.get(); this.systemTray = SystemTray.get();
// this.systemTray = SystemTray.getNative();
if (systemTray == null) { if (systemTray == null) {
throw new RuntimeException("Unable to load SystemTray!"); throw new RuntimeException("Unable to load SystemTray!");
} }

View File

@ -61,7 +61,6 @@ class TestTraySwt {
} }
private SystemTray systemTray; private SystemTray systemTray;
private ActionListener callbackGreen;
private ActionListener callbackGray; private ActionListener callbackGray;
public public
@ -75,6 +74,7 @@ class TestTraySwt {
this.systemTray = SystemTray.get(); this.systemTray = SystemTray.get();
// this.systemTray = SystemTray.getNative();
if (systemTray == null) { if (systemTray == null) {
throw new RuntimeException("Unable to load SystemTray!"); throw new RuntimeException("Unable to load SystemTray!");
} }