Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 65118
89
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