public final class SwingTrayIcon
extends java.lang.Object
Constructor and Description |
---|
SwingTrayIcon(java.awt.GraphicsConfiguration gc,
java.lang.String resourcepath) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(java.awt.event.MouseListener ml)
Add a mouse listener
|
void |
disable() |
void |
displayMessage(java.lang.String title,
java.lang.String body)
Display desktop message (Windows only)
|
void |
dispose() |
boolean |
isLoaded()
Is tray icon loaded
|
boolean |
isSupported() |
void |
load()
Load tray icon
|
void |
setInfoTip(java.lang.String text)
Set info tip text
|
void |
setTrayPopupMenu(TrayPopupMenu tpm)
Set tray right click popup
|
void |
unload()
Unload Tray icon
|
public SwingTrayIcon(java.awt.GraphicsConfiguration gc, java.lang.String resourcepath)
public void dispose()
public void disable()
public void setTrayPopupMenu(TrayPopupMenu tpm)
tpm
- public void setInfoTip(java.lang.String text)
text
- public void displayMessage(java.lang.String title, java.lang.String body)
title
- body
- public void load()
public void unload()
public void addMouseListener(java.awt.event.MouseListener ml)
ml
- public boolean isLoaded()
public boolean isSupported()