|
How to add icon into System Tray |
|
|
By using the following code an image can be added to the system Tray.
public class systemTray {
public static void main(String[] args) {
Display display = Display.getDefault();
Tray tray = display.getSystemTray();
TrayItem item = new TrayItem(tray, 0);
Image img = new Image(display, "c:\\picture.jpg");
Item.setImage(img);
Item.setToolTipText("SWT Tray in action");
}
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.