Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes Why can't I get tooltip to show up when text in JTextField certain length? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why can Watch "Why can New topic
Author

Why can't I get tooltip to show up when text in JTextField certain length?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't I get tooltip to show up when text in JTextField certain length?
 
Similar Threads
JToolTip displays JList selected text, later
JButtons inside JTooltip
Customizing JToolTip
JTooltip with a vertical scrollbar?
JToolTip Problems