Lines Matching refs:TrayIcon
39 * A <code>TrayIcon</code> object represents a tray icon that can be
41 * <code>TrayIcon</code> can have a tooltip (text), an image, a popup
44 * <p>A <code>TrayIcon</code> can generate various {@link MouseEvent
46 * notification of these events. <code>TrayIcon</code> processes some
48 * right-mouse click is performed on the <code>TrayIcon</code> it
50 * over the <code>TrayIcon</code> the tooltip is displayed.
57 * <code>TrayIcon</code>. (See {@link
60 * <p><b>Note:</b> A well-behaved {@link TrayIcon} implementation
64 * <p>A <code>TrayIcon</code> can generate an {@link ActionEvent
70 * a {@code TrayIcon}. Otherwise the constructor will throw a
74 * to use the <code>TrayIcon</code> API.
86 public class TrayIcon {
105 * because TrayIcon is not serializable.
114 throw new SecurityException("TrayIcon is missing AccessControlContext");
127 public void addNotify(TrayIcon trayIcon) throws AWTException {
130 public void removeNotify(TrayIcon trayIcon) {
136 private TrayIcon()
150 * Creates a <code>TrayIcon</code> with the specified image.
161 * @see SystemTray#add(TrayIcon)
162 * @see TrayIcon#TrayIcon(Image, String, PopupMenu)
163 * @see TrayIcon#TrayIcon(Image, String)
167 public TrayIcon(Image image) {
170 throw new IllegalArgumentException("creating TrayIcon with null Image");
176 * Creates a <code>TrayIcon</code> with the specified image and
190 * @see SystemTray#add(TrayIcon)
191 * @see TrayIcon#TrayIcon(Image)
192 * @see TrayIcon#TrayIcon(Image, String, PopupMenu)
196 public TrayIcon(Image image, String tooltip) {
202 * Creates a <code>TrayIcon</code> with the specified image,
217 * @see SystemTray#add(TrayIcon)
218 * @see TrayIcon#TrayIcon(Image, String)
219 * @see TrayIcon#TrayIcon(Image)
226 public TrayIcon(Image image, String tooltip, PopupMenu popup) {
232 * Sets the image for this <code>TrayIcon</code>. The previous
250 * @see SystemTray#add(TrayIcon)
251 * @see TrayIcon#TrayIcon(Image, String)
266 * Returns the current image used for this <code>TrayIcon</code>.
277 * Sets the popup menu for this <code>TrayIcon</code>. If
279 * associated with this <code>TrayIcon</code>.
286 * <p>The {@code popup} can be set on one {@code TrayIcon} only.
287 * Setting the same popup on multiple {@code TrayIcon}s will cause
297 * set for another {@code TrayIcon}
306 synchronized (TrayIcon.class) {
309 throw new IllegalArgumentException("the PopupMenu is already set for another TrayIcon");
321 * Returns the popup menu associated with this <code>TrayIcon</code>.
331 * Sets the tooltip string for this <code>TrayIcon</code>. The
354 * <code>TrayIcon</code>.
403 * this <code>TrayIcon</code>. Calling this method with a
407 * from the {@code TrayIcon}) are relative to the screen, not the
408 * {@code TrayIcon}.
449 * registered on this <code>TrayIcon</code>.
452 * this <code>TrayIcon</code> or an empty array if no mouse
465 * events from this <code>TrayIcon</code>. Calling this method
469 * from the {@code TrayIcon}) are relative to the screen, not the
470 * {@code TrayIcon}.
510 * registered on this <code>TrayIcon</code>.
513 * this <code>TrayIcon</code> or an empty array if no mouse
552 * <code>ActionEvent</code>s from this <code>TrayIcon</code>.
597 * registered on this <code>TrayIcon</code>.
600 * this <code>TrayIcon</code> or an empty array if no action
616 * @see TrayIcon
617 * @see TrayIcon#displayMessage(String, String, MessageType)
673 * @see TrayIcon#setImageAutoSize(boolean)
675 * @see TrayIcon#getSize()