• Nested Class Summary

    Nested Classes

    static enum 

    The message type determines which icon will be displayed in the caption of the message, and a possible system sound a message may generate upon showing.

  • Constructor Summary

    Constructors

    Creates a TrayIcon with the specified image.

    Creates a TrayIcon with the specified image and tooltip text.

    Creates a TrayIcon with the specified image, tooltip and popup menu.

  • Method Summary

    void

    Adds the specified action listener to receive ActionEvents from this TrayIcon.

    void

    Adds the specified mouse listener to receive mouse events from this TrayIcon.

    void

    Adds the specified mouse listener to receive mouse-motion events from this TrayIcon.

    void

    Displays a popup message near the tray icon.

    Returns the command name of the action event fired by this tray icon.

    Returns an array of all the action listeners registered on this TrayIcon.

    getImage()

    Returns the current image used for this TrayIcon.

    Returns an array of all the mouse listeners registered on this TrayIcon.

    Returns an array of all the mouse-motion listeners registered on this TrayIcon.

    Returns the popup menu associated with this TrayIcon.

    getSize()

    Returns the size, in pixels, of the space that the tray icon occupies in the system tray.

    Returns the tooltip string associated with this TrayIcon.

    boolean

    Returns the value of the auto-size property.

    void

    Removes the specified action listener.

    void

    Removes the specified mouse listener.

    void

    Removes the specified mouse-motion listener.

    void

    Sets the command name for the action event fired by this tray icon.

    void

    Sets the image for this TrayIcon.

    void

    setImageAutoSize(boolean autosize)

    Sets the auto-size property.

    void

    Sets the popup menu for this TrayIcon.

    void

    Sets the tooltip string for this TrayIcon.

  • Constructor Details

    • TrayIcon

    • TrayIcon

  • Method Details

    • setImage

    • getImage

    • setToolTip

    • getToolTip

    • setImageAutoSize

    • isImageAutoSize

    • addMouseListener

    • removeMouseListener

    • getMouseListeners

    • addMouseMotionListener

    • removeMouseMotionListener

    • getMouseMotionListeners

    • getActionCommand

    • setActionCommand

    • addActionListener

    • removeActionListener

    • getActionListeners

    • displayMessage

    • getSize