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.
|
||||
*/
|
||||
public static
|
||||
SystemTray get() {
|
||||
SystemTray getSwing() {
|
||||
init(false);
|
||||
return systemTray;
|
||||
}
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user