<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Setting status-bar text</title> <atom:link href="http://undocumentedmatlab.com/blog/setting-status-bar-text/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Thu, 09 Feb 2012 09:23:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-24205</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Tue, 30 Nov 2010 23:08:20 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-24205</guid> <description>@Sandor - the new statusbar simply pushed the figure contents upward a few pixels. Your tabs were probably right at the top of the figure contents, and so they were pushed upward beneath the toolbar and effectively became hidden.To fix this, simply resize the tab-group&#039;s position property so that its height decreases. For example:
&lt;pre lang=&quot;matlab&quot;&gt;&gt;&gt; set(hTabGroup,&#039;pos&#039;,[0,0,1,.95])&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>@Sandor &#8211; the new statusbar simply pushed the figure contents upward a few pixels. Your tabs were probably right at the top of the figure contents, and so they were pushed upward beneath the toolbar and effectively became hidden.</p><p>To fix this, simply resize the tab-group&#8217;s position property so that its height decreases. For example:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">&gt;&gt; <span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>hTabGroup,<span style="color:#A020F0;">'pos'</span>,<span style="color: #080;">&#91;</span><span style="color: #33f;">0</span>,<span style="color: #33f;">0</span>,<span style="color: #33f;">1</span>,.95<span style="color: #080;">&#93;</span><span style="color: #080;">&#41;</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Sandor Toth</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-24071</link> <dc:creator>Sandor Toth</dc:creator> <pubDate>Mon, 29 Nov 2010 14:24:02 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-24071</guid> <description>I tried statusbar(), but I have a problem when I use it together with tabgroup. After I built my tabs, then I called:
&lt;pre lang=&quot;matlab&quot;&gt;statusbar(&#039;My text&#039;);&lt;/pre&gt;
and the tabs disappeared.
Is it some incompatibility issue?</description> <content:encoded><![CDATA[<p>I tried statusbar(), but I have a problem when I use it together with tabgroup. After I built my tabs, then I called:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">statusbar<span style="color: #080;">&#40;</span><span style="color:#A020F0;">'My text'</span><span style="color: #080;">&#41;</span>;</pre></div></div><p>and the tabs disappeared.<br
/> Is it some incompatibility issue?</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-20982</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Mon, 25 Oct 2010 15:07:19 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-20982</guid> <description>@Sunny - I don&#039;t know: I haven&#039;t played with Simulink too much...</description> <content:encoded><![CDATA[<p>@Sunny &#8211; I don&#8217;t know: I haven&#8217;t played with Simulink too much&#8230;</p> ]]></content:encoded> </item> <item><title>By: Sunny R Billava</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-20970</link> <dc:creator>Sunny R Billava</dc:creator> <pubDate>Mon, 25 Oct 2010 10:39:37 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-20970</guid> <description>can the same thing (Progress bar on status bar) be done for the simulink model editor window&#039;s status bar?-Sunny</description> <content:encoded><![CDATA[<p>can the same thing (Progress bar on status bar) be done for the simulink model editor window&#8217;s status bar?</p><p>-Sunny</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2569</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 10 Sep 2009 08:57:44 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2569</guid> <description>Thank Joan
You may find my &lt;a target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/14225&quot; rel=&quot;nofollow&quot;&gt;Java-based data table utility&lt;/a&gt; (on the Matlab File Exchange) useful as a general-purpose sortable Java table. My &lt;a target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/15372&quot; rel=&quot;nofollow&quot;&gt;PlotData utility&lt;/a&gt; also uses a Java table, in this case to display the raw data of figure plots. With the knowledge that you have displayed in your question, it should be fairly easy for you to modify the code in these two utilities to fit your purposes.</description> <content:encoded><![CDATA[<p>Thank Joan<br
/> You may find my <a
target="_blank" href="http://www.mathworks.com/matlabcentral/fileexchange/14225" rel="nofollow">Java-based data table utility</a> (on the Matlab File Exchange) useful as a general-purpose sortable Java table. My <a
target="_blank" href="http://www.mathworks.com/matlabcentral/fileexchange/15372" rel="nofollow">PlotData utility</a> also uses a Java table, in this case to display the raw data of figure plots. With the knowledge that you have displayed in your question, it should be fairly easy for you to modify the code in these two utilities to fit your purposes.</p> ]]></content:encoded> </item> <item><title>By: Joan</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2568</link> <dc:creator>Joan</dc:creator> <pubDate>Thu, 10 Sep 2009 08:05:13 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2568</guid> <description>First of all, congratulations for your excellent site.
I looked for a place where to post this idea, but I didn&#039;t know where to.
I do not like Matlab uitable, and in GUI I use the java table. However, java table  is difficult for me to program, specially the Callbacks when someone edits a cell value.  Is there a way I could use the table in the ArrayEditor to edit data from a GUI?. The table in the ArrayEditor looks like the java table, and has many features when right-click, and also updates the value of the matrix when I edit a cell value. My idea is to have a button in my main GUI that says &quot;Edit&quot;. When clicked, it opens the ArrayEditor in a separate window. This window should also have buttons Accept, Cancel. In Accept, it collects the data from the ArrayEditor and closes window. When cancel, it simply closes the windows. To put it in a nutshell... is there a way to put the ArrayEditor table in a new figure window, with room left for adding buttons? (I can do all the rest). Thank you very much and congratulations again.</description> <content:encoded><![CDATA[<p>First of all, congratulations for your excellent site.<br
/> I looked for a place where to post this idea, but I didn&#8217;t know where to.<br
/> I do not like Matlab uitable, and in GUI I use the java table. However, java table  is difficult for me to program, specially the Callbacks when someone edits a cell value.  Is there a way I could use the table in the ArrayEditor to edit data from a GUI?. The table in the ArrayEditor looks like the java table, and has many features when right-click, and also updates the value of the matrix when I edit a cell value. My idea is to have a button in my main GUI that says &#8220;Edit&#8221;. When clicked, it opens the ArrayEditor in a separate window. This window should also have buttons Accept, Cancel. In Accept, it collects the data from the ArrayEditor and closes window. When cancel, it simply closes the windows. To put it in a nutshell&#8230; is there a way to put the ArrayEditor table in a new figure window, with room left for adding buttons? (I can do all the rest). Thank you very much and congratulations again.</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2194</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 19 Aug 2009 15:48:23 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2194</guid> <description>@wei - I believe (not sure) that the dotted line is OS-generated. I do not know of a way to control it with PLAF  - you may need to hack some really internal Java/OS function for this...If you don&#039;t wish the control selection to become visible, perhaps you should simply set the control to be non-focusable or disabled?</description> <content:encoded><![CDATA[<p>@wei &#8211; I believe (not sure) that the dotted line is OS-generated. I do not know of a way to control it with PLAF  &#8211; you may need to hack some really internal Java/OS function for this&#8230;</p><p>If you don&#8217;t wish the control selection to become visible, perhaps you should simply set the control to be non-focusable or disabled?</p> ]]></content:encoded> </item> <item><title>By: wei</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2072</link> <dc:creator>wei</dc:creator> <pubDate>Mon, 10 Aug 2009 12:33:58 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2072</guid> <description>@Yair, Thank you for the help. I tried and it worked with second command below:&lt;pre lang=&quot;matlab&quot;&gt;
jButton.setBorder(&#039;empty&#039;); %no visible effect
jButton.setBorder([]);
&lt;/pre&gt;Another (plaf?) question: after a jbutton is pressed, there is a dotted rectangular line on the button icon indicating the latest focused object. Could this line be removed or set to the same background color so it is invisible?</description> <content:encoded><![CDATA[<p>@Yair, Thank you for the help. I tried and it worked with second command below:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jButton.<span style="">setBorder</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'empty'</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%no visible effect</span>
jButton.<span style="">setBorder</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span><span style="color: #080;">&#41;</span>;</pre></div></div><p>Another (plaf?) question: after a jbutton is pressed, there is a dotted rectangular line on the button icon indicating the latest focused object. Could this line be removed or set to the same background color so it is invisible?</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2036</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Fri, 07 Aug 2009 15:48:09 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2036</guid> <description>My &lt;i&gt;&lt;b&gt;uicomponent&lt;/b&gt;&lt;/i&gt; utility (and similarly Matlab&#039;s &lt;i&gt;&lt;b&gt;javacomponent&lt;/b&gt;&lt;/i&gt; function) returns the Java reference. This can be used to update the component&#039;s Border property. The default component border is set at creation-time based on the currently-active Look-and-Feel (L&amp;F), but can always be overridden. You can&#039;t pre-lock a property value. But you can modify it immediately following creation, which is essentially the same thing.Alternately, you can create your component with some specific predefined L&amp;F, regardless of the system&#039;s L&amp;F, as follows:&lt;pre lang=&quot;matlab&quot;&gt;
import javax.swing.UIManager;
originalLnF = UIManager.getLookAndFeel;
UIManager.setLookAndFeel(&#039;javax.swing.plaf.metal.MetalLookAndFeel&#039;);
% Create your GUI here...
UIManager.setLookAndFeel(originalLnF);
&lt;/pre&gt;Here are two official documentation references for the Java L&amp;F system:
http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel
http://java.sun.com/products/jlf/ </description> <content:encoded><![CDATA[<p>My <i><b>uicomponent</b></i> utility (and similarly Matlab&#8217;s <i><b>javacomponent</b></i> function) returns the Java reference. This can be used to update the component&#8217;s Border property. The default component border is set at creation-time based on the currently-active Look-and-Feel (L&#038;F), but can always be overridden. You can&#8217;t pre-lock a property value. But you can modify it immediately following creation, which is essentially the same thing.</p><p>Alternately, you can create your component with some specific predefined L&#038;F, regardless of the system&#8217;s L&#038;F, as follows:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">import javax.<span style="">swing</span>.<span style="">UIManager</span>;
originalLnF = UIManager.<span style="">getLookAndFeel</span>;
UIManager.<span style="">setLookAndFeel</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'javax.swing.plaf.metal.MetalLookAndFeel'</span><span style="color: #080;">&#41;</span>;
   <span style="color: #228B22;">% Create your GUI here...</span>
UIManager.<span style="">setLookAndFeel</span><span style="color: #080;">&#40;</span>originalLnF<span style="color: #080;">&#41;</span>;</pre></div></div><p>Here are two official documentation references for the Java L&#038;F system:<br
/> <a
href="http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel" rel="nofollow">http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel</a><br
/> <a
href="http://java.sun.com/products/jlf/" rel="nofollow">http://java.sun.com/products/jlf/</a></p> ]]></content:encoded> </item> <item><title>By: wei</title><link>http://undocumentedmatlab.com/blog/setting-status-bar-text/#comment-2025</link> <dc:creator>wei</dc:creator> <pubDate>Fri, 07 Aug 2009 00:20:02 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2025</guid> <description>@Yair,
I&#039;m using your uicomponent for such button. there is java component border which, depending on desktop&#039;s appearance, is either com.sun.java.swing.plaf.windows.XPStyle$XPEmptyBorder or javax.swing.plaf.BorderUIResource$CompoundBorderUIResourceNot sure how to proceed to lock onto one style or the other.</description> <content:encoded><![CDATA[<p>@Yair,<br
/> I&#8217;m using your uicomponent for such button. there is java component border which, depending on desktop&#8217;s appearance, is either com.sun.java.swing.plaf.windows.XPStyle$XPEmptyBorder or javax.swing.plaf.BorderUIResource$CompoundBorderUIResource</p><p>Not sure how to proceed to lock onto one style or the other.</p> ]]></content:encoded> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           single
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-02-09 04:44:08 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/setting-status-bar-text/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.639s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328787847; expires=Fri, 08-Feb-2013 11:44:07 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=465>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Thu, 09 Feb 2012 11:44:08 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Thu, 09 Feb 2012 12:44:08 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               37610c88bdc42bc5ad794b4bad84a7d5
Content-Encoding:   gzip
-->
