<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153690</link>
    <title>MATLAB Central Newsreader - How do I add ToolTips to uitree's?</title>
    <description>Feed for thread: How do I add ToolTips to uitree's?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 30 Jul 2007 20:09:45 -0400</pubDate>
      <title>How do I add ToolTips to uitree's?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153690#385620</link>
      <author> farhan.rizwi@unswalumni.com</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
Adding tooltips to a uitable seems pretty straightforward, for example&lt;br&gt;
&lt;br&gt;
uit=uitable;&lt;br&gt;
uit.Table.setToolTipText('voila');&lt;br&gt;
&lt;br&gt;
.. and there you have it.&lt;br&gt;
&lt;br&gt;
Unfortunately, this scheme does not work with uitree's.  I suspect it&lt;br&gt;
has to do with various subclassing of the createToolTip method but I&lt;br&gt;
haven't figured it all out yet.&lt;br&gt;
&lt;br&gt;
If someone else has, could the enlighten the group?&lt;br&gt;
&lt;br&gt;
Thanks in advance for any help.&lt;br&gt;
&lt;br&gt;
-Farhan</description>
    </item>
    <item>
      <pubDate>Tue, 31 Jul 2007 17:53:48 -0400</pubDate>
      <title>Re: How do I add ToolTips to uitree's?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153690#385727</link>
      <author>Yair Altman</author>
      <description>&amp;nbsp;farhan.rizwi@unswalumni.com wrote in message &amp;lt;1185851385.458338.216410@x35g2000prf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Adding tooltips to a uitable seems pretty straightforward, for example&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; uit=uitable;&lt;br&gt;
&amp;gt; uit.Table.setToolTipText('voila');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; .. and there you have it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Unfortunately, this scheme does not work with uitree's.  I suspect it&lt;br&gt;
&amp;gt; has to do with various subclassing of the createToolTip method but I&lt;br&gt;
&amp;gt; haven't figured it all out yet.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://www.ymasoftware.com&quot;&gt;http://www.ymasoftware.com&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

