MCPcopy Create free account
hub / github.com/dorkbox/SystemTray / get

Method get

src/dorkbox/systemTray/SystemTray.java:169–172  ·  view source on GitHub ↗

Enables native menus on Windows/Linux/macOS instead of the swing menu. The drawback is that this menu is native, and sometimes native menus looks absolutely HORRID. This always returns the same instance per JVM (it's a singleton), and on some platforms the system tray may not be supported, in wh

()

Source from the content-addressed store, hash-verified

167 * each instance
168 */
169 public static
170 SystemTray get() {
171 return get("SystemTray");
172 }
173
174 /**
175 * Enables native menus on Windows/Linux/macOS instead of the swing menu. The drawback is that this menu is native, and sometimes

Callers 5

TestMultiTrayMethod · 0.95
TestTrayMethod · 0.95
TestReAddTrayMethod · 0.95
TestTraySwtMethod · 0.95
doJavaFxStuffMethod · 0.95

Calls 15

getInstanceMethod · 0.95
getVersionMethod · 0.95
getMethod · 0.95
getTrayImageSizeMethod · 0.95
getMenuImageSizeMethod · 0.95
fixMethod · 0.95
fixMethod · 0.95
fixMethod · 0.95
removeSystemTrayHookMethod · 0.95
hasOtherTraysMethod · 0.95
shutdownMethod · 0.95
setInstanceMethod · 0.95

Tested by 5

TestMultiTrayMethod · 0.76
TestTrayMethod · 0.76
TestReAddTrayMethod · 0.76
TestTraySwtMethod · 0.76
doJavaFxStuffMethod · 0.76