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.
*/
public static
SystemTray get() {
SystemTray getSwing() {
init(false);
return systemTray;
}

View File

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

View File

@ -114,7 +114,7 @@ class TestTrayJavaFX {
primaryStage.show();
this.systemTray = SystemTray.get();
this.systemTray = SystemTray.getSwing();
// this.systemTray = SystemTray.getNative();
if (systemTray == null) {
throw new RuntimeException("Unable to load SystemTray!");

View File

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