• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!