• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JTabbedPane

 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got a trouble with setting ToolTipText at the tabs of JTabbedPane.

Normally I can use the following code to set ToolTipText for the tabs. And it works.

But if I use a JTabbedPane which uses SCROLL_TAB_LAYOUT Policy shown as the following code, then the ToolTipText won�t work. The ToolTipText never appear.


Thanks to everyone's help.
[ October 01, 2004: Message edited by: Pat Hays ]
 
Alan Moore
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bug, caused by the way they implemented scrolled tabs:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4668865

You can either upgrade to jdk 5.0 or use a real tabbed panel:

http://www.infonode.net/index.html?itp
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Alan for your help, You have saved my time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic