Java java.awt TrayIcon fields, constructors, methods, implement or subclass

Example usage for Java java.awt TrayIcon fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt TrayIcon.

The text is from its open source code.

Constructor

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.

Method

voidaddActionListener(ActionListener listener)
Adds the specified action listener to receive ActionEvent s from this TrayIcon .
voidaddMouseListener(MouseListener listener)
Adds the specified mouse listener to receive mouse events from this TrayIcon .
voidaddMouseMotionListener(MouseMotionListener listener)
Adds the specified mouse listener to receive mouse-motion events from this TrayIcon .
voiddisplayMessage(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 .
ImagegetImage()
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 .
PopupMenugetPopupMenu()
Returns the popup menu associated with this TrayIcon .
DimensiongetSize()
Returns the size, in pixels, of the space that the tray icon occupies in the system tray.
StringgetToolTip()
Returns the tooltip string associated with this TrayIcon .
booleanisImageAutoSize()
Returns the value of the auto-size property.
voidremoveActionListener(ActionListener listener)
Removes the specified action listener.
voidremoveMouseListener(MouseListener listener)
Removes the specified mouse listener.
voidremoveMouseMotionListener(MouseMotionListener listener)
Removes the specified mouse-motion listener.
voidsetActionCommand(String command)
Sets the command name for the action event fired by this tray icon.
voidsetImage(Image image)
Sets the image for this TrayIcon .
voidsetImageAutoSize(boolean autosize)
Sets the auto-size property.
voidsetPopupMenu(PopupMenu popup)
Sets the popup menu for this TrayIcon .
voidsetToolTip(String tooltip)
Sets the tooltip string for this TrayIcon .