Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show ms outlook's notification like popup in java?

Tags:

java

swing

popup

How can I show ms outlook's notification like popup in java swing? is it possible? any other alternative for this?

enter image description here

like image 660
Harry Joy Avatar asked May 30 '11 09:05

Harry Joy


2 Answers

Simply use an undecorated JFrame ( frame.setUndecorated(true) ) and calculate the location and size by using Toolkit.getDefaultToolkit().getScreenSize().

like image 108
Stephan Avatar answered Nov 17 '22 10:11

Stephan


You will need to take a look at the System Tray API. The displayIcon method should do what you need:

Displays a popup message near the tray icon. The message will disappear after a time or if the user clicks on it. Clicking on the message may trigger an ActionEvent.

like image 2
npinti Avatar answered Nov 17 '22 11:11

npinti