Forums Register Login

showing Tooltips in Jtable

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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).
Happily living in the valley of the dried frogs with a few tiny ads.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3179 times.
Similar Threads
JTable
JTable problem
JTable
JTable
JTable(!!!)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:32:30.