This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tooltips...

 
rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way i can 'implement' the tooltip feature??
roba
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what? Swing? HTML? Other?
 
rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i want to have a JPanel overriding paintComponent added to a JFrame...

Basically i want a 'Shape' with tooltips. But it doesnt seem to have tooltips.
I tried to have a oject that overrides JCOmpoonent and override the paintComponent(Graphics g) method and place that into the JPanel somewhere and than add it to the JFrame. The object appears but does not have tooltips
roba
 
Ricky Clarkson
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can draw custom graphics onto a JLabel or a JButton by virtue of the Icon APIs, with no problems, and it will often be faster than paintComponent, and not need to be done on the EDT.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic