Setting a tooltip for the cells of a SortableTable

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Setting a tooltip for the cells of a SortableTable

Postby fsnolekv » Tue Nov 25, 2008 12:15 pm

Hello All,

I am trying to set tooltip for the cells of a table based on the value of the cell. I see I can override the "getToolTipText" of the SortableTable, but I can't figure out how to get a reference to the cell's value using the MouseEvent. Any suggestions?

Thanks,

Kim
fsnolekv
 
Posts: 18
Joined: Tue Oct 02, 2007 5:27 pm

Re: Setting a tooltip for the cells of a SortableTable

Postby JIDE Support » Tue Nov 25, 2008 12:57 pm

The way tooltip works in JTable is the tooltip can be set on the cell renderer component. JTable will read it from cell renderer component. If you don't have control over the cell renderer component, you can use mouse event to find out the cell (using rowAtPoint and columnAtPoint methods on JTable) and then find out the cell value.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: Setting a tooltip for the cells of a SortableTable

Postby fsnolekv » Tue Nov 25, 2008 1:48 pm

Thanks! RowAtPoint was the special function I needed... :D
fsnolekv
 
Posts: 18
Joined: Tue Oct 02, 2007 5:27 pm

Re: Setting a tooltip for the cells of a SortableTable

Postby fsnolekv » Tue Nov 25, 2008 2:02 pm

Also, sorry that wasn't Jide related...
fsnolekv
 
Posts: 18
Joined: Tue Oct 02, 2007 5:27 pm


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 7 guests