TrayIcon (Java SE 25 & JDK 25)
-
Nested Class Summary
Nested Classes
static enumThe 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
TrayIconwith the specified image.Creates a
TrayIconwith the specified image and tooltip text.Creates a
TrayIconwith the specified image, tooltip and popup menu. -
Method Summary
voidAdds the specified action listener to receive
ActionEvents from thisTrayIcon.voidAdds the specified mouse listener to receive mouse events from this
TrayIcon.voidAdds the specified mouse listener to receive mouse-motion events from this
TrayIcon.voidDisplays 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.booleanReturns the value of the auto-size property.
voidRemoves the specified action listener.
voidRemoves the specified mouse listener.
voidRemoves the specified mouse-motion listener.
voidSets the command name for the action event fired by this tray icon.
voidSets the image for this
TrayIcon.voidsetImageAutoSize(boolean autosize) Sets the auto-size property.
voidSets the popup menu for this
TrayIcon.voidSets 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
-