I'll be looking into this tonight. My schedule has been pretty crazy
On Nov 8, 7:09 am, Jay Guidos <
jay.gui...@gmail.com> wrote:
> Hi there J,
>
> Your observations are sound - indeed I was aware of being able to set the
> tooltip on the renderer. And just as you commented, in this particular case
> my tool tips have dependencies that span the particular cell in question,
> and are more a consequence of the state of the entire model - so in this
> case I believe providing a table override is an appropriate approach.
>
> Now all we need is Alex to come up with a brilliant way to integrate
> event-driven tool tips and we are good to go :)
>
> Jay
>
>
>
>
>
>
>
> On Mon, Nov 8, 2010 at 5:09 AM, J3 <
jeth...@gmail.com> wrote:
> > Hello Alex, and Jay (and sorry for hijacking your topic, but I think
> > it's closely related),
>
> > Jay describes overriding getToolTipText(), but there's another way to
> > provide cell-specific tooltip too, which is to set the renderer's
> > tooltip. I deem it's a preferrable design when it is possible, as it
> > doesn't require subclassing JTable, but it sometimes leads to clumsy
> > code when the tooltip depends on information that are not in the cell
> > alone.
> > This section of the Swing tutorial describes both approaches:
>