Example usage for Java java.awt TrayIcon fields, constructors, methods, implement or subclass
The text is from its open source code.
TrayIcon(Image image) Creates a TrayIcon with the specified image. | |
TrayIcon(Image image, String tooltip, PopupMenu popup) Creates a TrayIcon with the specified image, tooltip and popup menu. | |
TrayIcon(Image image, String tooltip) Creates a TrayIcon with the specified image and tooltip text. |
void | addActionListener(ActionListener listener) Adds the specified action listener to receive ActionEvent s from this TrayIcon . |
void | addMouseListener(MouseListener listener) Adds the specified mouse listener to receive mouse events from this TrayIcon . |
void | addMouseMotionListener(MouseMotionListener listener) Adds the specified mouse listener to receive mouse-motion events from this TrayIcon . |
void | displayMessage(String caption, String text, MessageType messageType) Displays a popup message near the tray icon. |
ActionListener[] | getActionListeners() Returns an array of all the action listeners registered on this TrayIcon . |
Image | getImage() Returns the current image used for this TrayIcon . |
MouseListener[] | getMouseListeners() Returns an array of all the mouse listeners registered on this TrayIcon . |
MouseMotionListener[] | getMouseMotionListeners() Returns an array of all the mouse-motion listeners registered on this TrayIcon . |
PopupMenu | getPopupMenu() Returns the popup menu associated with this TrayIcon . |
Dimension | getSize() Returns the size, in pixels, of the space that the tray icon occupies in the system tray. |
String | getToolTip() Returns the tooltip string associated with this TrayIcon . |
boolean | isImageAutoSize() Returns the value of the auto-size property. |
void | removeActionListener(ActionListener listener) Removes the specified action listener. |
void | removeMouseListener(MouseListener listener) Removes the specified mouse listener. |
void | removeMouseMotionListener(MouseMotionListener listener) Removes the specified mouse-motion listener. |
void | setActionCommand(String command) Sets the command name for the action event fired by this tray icon. |
void | setImage(Image image) Sets the image for this TrayIcon . |
void | setImageAutoSize(boolean autosize) Sets the auto-size property. |
void | setPopupMenu(PopupMenu popup) Sets the popup menu for this TrayIcon . |
void | setToolTip(String tooltip) Sets the tooltip string for this TrayIcon . |