I'm somewhat used to the GUI idiom where when I type something wrong in a text input field a balloon pops up from the field with info about what I got wrong / expected input. It remains visible until I type again. But now I couldn't find any example to point to.
Given a JTextfield do you know of any library/code that would display such a balloon when triggered by my keylistener?
@see http://www.javapractices.com/topic/TopicAction.do?Id=151
The link given by James Poulson probably provides a better solution, but I had to see if this were possible with some simple Java code using a DocumentFilter and a JWindow. Here's one possible way to do this:
Constructive or destructive criticism is most welcome!
Balloon Tip is a library that does that:
That was all needed! If you insist on a having it be a tooltip too: