4

Looking for a means of displaying transient, non-modal dialogs in a Swing application. In other words, I'd like to pop up a semi-transparent box with some text in it that can be immediately dismissed, or will fade away in a set amount of time. Is there a library to do this? I don't want to reinvent the wheel if it already exists.

Growl screenshot: alt text Android Toast screenshot: alt text
(source: devx.com)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
I82Much
  • 26,901
  • 13
  • 88
  • 119
  • You may find some useful information [here][1]; the question includes relevant links, and the answers are informative. Erratum: Sorry about the incorrect link. [1]:http://stackoverflow.com/questions/2163544 – trashgod Apr 19 '10 at 15:51

1 Answers1

2

This link provides information about "translucent shaped Windows" using Swing, though it does not provide the full sourcecode (but slides explaining what has to be done in order to achieve this). He basically uses JNA to avoid problems with repainting translucent windows and makes use of two libraries to easily add fade etc. support.

Tedil
  • 1,935
  • 28
  • 32