Lines Matching refs:trayIcon
68 * {@link TrayIcon} trayIcon = null;
89 * trayIcon = new {@link TrayIcon#TrayIcon(java.awt.Image, String, java.awt.PopupMenu) TrayIcon}(image, "Tray Demo", popup);
91 * trayIcon.{@link TrayIcon#addActionListener(java.awt.event.ActionListener) addActionListener}(listener);
95 * tray.{@link SystemTray#add(TrayIcon) add}(trayIcon);
108 * if (trayIcon != null) {
109 * trayIcon.{@link TrayIcon#setImage(java.awt.Image) setImage}(updatedImage);
243 * @param trayIcon the <code>TrayIcon</code> to be added
244 * @throws NullPointerException if <code>trayIcon</code> is
254 public void add(TrayIcon trayIcon) throws AWTException {
255 if (trayIcon == null) {
267 } else if (icons.contains(trayIcon)) {
270 icons.add(trayIcon);
273 trayIcon.setID(++currentIconID);
276 trayIcon.addNotify();
278 icons.remove(trayIcon);
292 * <p> If <code>trayIcon</code> is <code>null</code> or was not
296 * @param trayIcon the <code>TrayIcon</code> to be removed
300 public void remove(TrayIcon trayIcon) {
301 if (trayIcon == null) {
309 if (icons == null || !icons.remove(trayIcon)) {
312 trayIcon.removeNotify();