• Post Reply Bookmark Topic Watch Topic
  • New Topic

showing Tooltips in Jtable  RSS feed

 
jagan mohan reddy marella
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem with my JTable. I have one JTable, in that Jtable I added panel in each cell. In each panel i have some group of components. I completed all the listeners for the components in the Jtable.

But I am unable to display tooltips for the for components added in the jtable,
Tooltips are displaying when I select the any row in the table. But our PM asking to display the tooltips when mouse over on the particular components in the jtable, I tried so many methods but i am unable to do it. Please help me......

Thanks,
Jagan
 
Peter Taucher
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jagan mohan reddy marella wrote:I tried so many methods but i am unable to do it.

And what would that 'many' methods have been? Did you follow the tutorial? It has a section called 'Specifying Tool Tips for Cells' and I think it should also work on your table...
-> http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
 
jagan mohan reddy marella
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply,
Tooltips for cells are working, but in a cell i have a panel and in that panel i have some components, i need to show the tooltips for those when mouse over.

Thanks,
Jagan
 
Peter Taucher
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'd have to override not only getTooltipText of JTable but of your JPanel as well (and call the panel method from the table method).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!