public class AWTSystemTray extends SystemTray
Constructor and Description |
---|
AWTSystemTray()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addTrayIcon(TrayIcon trayIcon)
Adds a TrayIcon to this system tray implementation.
|
TrayIcon |
createTrayIcon(javax.swing.ImageIcon icon,
java.lang.String tooltip,
java.lang.Object popup)
Creates an implementation specific TrayIcon that can later be
added with
SystemTray.addTrayIcon(TrayIcon) . |
boolean |
supportsDynamicMenu()
Determines if the tray icon supports dynamic menus.
|
boolean |
useSwingPopupMenu()
Determines if the popup menu for the icon is to be a Swing
JPopupMenu or an AWT PopupMenu
|
getSystemTray, getSystemTrayMode
public void addTrayIcon(TrayIcon trayIcon) throws java.lang.IllegalArgumentException
SystemTray
addTrayIcon
in class SystemTray
trayIcon
- the TrayIcon to addjava.lang.IllegalArgumentException
public TrayIcon createTrayIcon(javax.swing.ImageIcon icon, java.lang.String tooltip, java.lang.Object popup)
SystemTray
SystemTray.addTrayIcon(TrayIcon)
.createTrayIcon
in class SystemTray
tooltip
- the string to be used as tooltip text; if the value is
null no tooltip is shownpopup
- the menu to be used for the tray icon's popup menu; if the
value is null no popup menu is shownpublic boolean useSwingPopupMenu()
SystemTray
useSwingPopupMenu
in class SystemTray
public boolean supportsDynamicMenu()
SystemTray
supportsDynamicMenu
in class SystemTray
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.