Why can't I get tooltip to show up when text in JTextField certain length?
posted 11 years ago
I want to make a JToolTip show up (and formatted a certain way) when the text in a JTextField gets to a length beyond the visible horizontal length. I can make a window show up in this situation (i.e. I know how to test for the condition) but I can't get a tool tip to show up. I tried registering the text field with the ToolTipManager and then getting the "postTip" action and firing it's actionPerformed, but it didn't work. Any idea if there's a way?
Yet this does not make it show up. Any idea what I'm doing wrong? [ January 25, 2005: Message edited by: Dan Bizman ]