This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 64629
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