7891011121314151617
public static SystemTrayAdapter getSystemTray() { String osName = System.getProperty("os.name").toLowerCase(); if (osName.startsWith("linux")) { try { return new LinuxNativeTrayAdapter(); } catch (Exception e) { } } return new JavaTrayAdapter();