forked from dorkbox/SystemTray
API Changed SystemTray.get() -> SystemTray.getSwing() to be
consistent with getNative() and to indicate that neither are preferred.
This commit is contained in:
parent
687035c3f1
commit
c524585dec
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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!");
|
||||||
|
@ -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!");
|
||||||
|
@ -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!");
|
||||||
|
Loading…
Reference in New Issue
Block a user