Thread Subject: How do I add ToolTips to uitree's?

Subject: How do I add ToolTips to uitree's?

From: farhan.rizwi@unswalumni.com

Date: 30 Jul, 2007 20:09:45

Message: 1 of 2

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.

If someone else has, could the enlighten the group?

Thanks in advance for any help.

-Farhan

Subject: How do I add ToolTips to uitree's?

From: Yair Altman

Date: 31 Jul, 2007 17:53:48

Message: 2 of 2

 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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
java Yair Altman 31 Jul, 2007 13:54:08
undocumented Yair Altman 31 Jul, 2007 01:10:34
gui Ned Gulley 30 Jul, 2007 23:44:21
hg Ned Gulley 30 Jul, 2007 23:44:21
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com