0

I am looking for a good open-source Java component for implementing popup notifications in a Swing desktop application.

The component should be able to function like the ones commonly seen in instant messaging applications such as MSN Messenger, so that just as someone sends you a message, a little ontop window slides up from the right bottom corner of the screen and fades out after a few seconds.

I've been Googling for it for quite some time now but I just can't believe that no ones has ever written something like that in Java/Swing.

Thanks a lot!

Dema
  • 6,867
  • 11
  • 40
  • 48
  • Are you talking about the little popups that come up from the little dock/icon set next to the clock in Windows? Because that is very OS specific - for instance, os X doesn't have anything like that metaphor really. – aperkins Sep 29 '09 at 20:37
  • Yes, that would be ideal, but it could be coming from within the main application frame corner as well. – Dema Sep 30 '09 at 20:30
  • 1
    You might want to take a look at this similar question: http://stackoverflow.com/questions/290210/sliding-notification-bar-in-java-a-la-firefox – Sam Martin Sep 30 '09 at 21:49

2 Answers2

2

How about using the SystemTray and TrayIcon classes in Java 6?

Pedro Estrada
  • 549
  • 3
  • 9
0

We had to implement that one in Windows ourselves. We used a JNI wrapper to a dll that would allow us to pop the window up on top of other applications. The fade is something that isn't available yet, but I believe it will be included in Java 7.

akf
  • 38,619
  • 8
  • 86
  • 96