API Changed SystemTray.get() -> SystemTray.getSwing() to be

consistent with getNative() and to indicate that neither are preferred.
This commit is contained in:
nathan 2017-01-21 15:49:58 +01:00
parent 687035c3f1
commit c524585dec
4 changed files with 4 additions and 4 deletions

View File

@ -910,7 +910,7 @@ class SystemTray {
* be granted in order to get the {@code SystemTray} instance. Otherwise this will return null. * be granted in order to get the {@code SystemTray} instance. Otherwise this will return null.
*/ */
public static public static
SystemTray get() { SystemTray getSwing() {
init(false); init(false);
return systemTray; return systemTray;
} }

View File

@ -56,7 +56,7 @@ class TestTray {
public public
TestTray() { TestTray() {
this.systemTray = SystemTray.get(); this.systemTray = SystemTray.getSwing();
// this.systemTray = SystemTray.getNative(); // 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

@ -114,7 +114,7 @@ class TestTrayJavaFX {
primaryStage.show(); primaryStage.show();
this.systemTray = SystemTray.get(); this.systemTray = SystemTray.getSwing();
// this.systemTray = SystemTray.getNative(); // 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

@ -73,7 +73,7 @@ class TestTraySwt {
helloWorldTest.pack(); helloWorldTest.pack();
this.systemTray = SystemTray.get(); this.systemTray = SystemTray.getSwing();
// this.systemTray = SystemTray.getNative(); // this.systemTray = SystemTray.getNative();
if (systemTray == null) { if (systemTray == null) {
throw new RuntimeException("Unable to load SystemTray!"); throw new RuntimeException("Unable to load SystemTray!");