Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Some sort of cursor label

 
Andrew Cho
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

I was wondering if there is some sort of label that can show up next to the mouse cursor when there's an event, such as mouseEntered or something. I've looked around for a while and can't find anything. If anyone has any ideas, that would be great.

Thanks,
Andrew
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean something like a tooltip? JComponent has built-in support for that, and by extension all Swing components.
 
Andrew Cho
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is exactly what I mean. Thank you so much.
Do you by any chance know how I could add individual JToolTips to table cells? I'm assuming it has do do with the CellRenderer
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled "jtable tooltip" and the first link which I got was Oracle's tutorial about JTable (which you should really have gone through already). There were half a dozen other links which looked like they wanted to answer your question.
 
Andrew Cho
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I just overrode the method in the JTable class anyways.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!