• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JTabbedPane

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Alan for your help, You have saved my time.
reply
    Bookmark Topic Watch Topic
  • New Topic