|
farhan.rizwi@unswalumni.com wrote in message <1185851385.458338.216410@x35g2000prf.googlegroups.com>...
> Hi,
>
> Adding tooltips to a uitable seems pretty straightforward, for example
>
> uit=uitable;
> uit.Table.setToolTipText('voila');
>
> .. and there you have it.
>
> Unfortunately, this scheme does not work with uitree's. I suspect it
> has to do with various subclassing of the createToolTip method but I
> haven't figured it all out yet.
You seem to be fairly advanced in Swing issues and if that's the case then I suggest you use Swing's JTree instead of Matlab's uitree, which doesn't really give you too much extra functionality anyway. Of course, tooltips in JTree are straightforward as your snippet above. You can even have cell-specific tooltips possible, via the tree-node's renderer.
Yair Altman
http://www.ymasoftware.com
|