<?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 Sep 2010 11:59:30 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/setting-status-bar-text/comment-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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$CompoundBorderUIResource

Not 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>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/setting-status-bar-text/comment-page-1/#comment-2024</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Thu, 06 Aug 2009 23:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2024</guid>
		<description>@Wei - First you need to get the underlying Java handle of the Matlab uicomponent (this is done using my FindJObj utility on the File Exchange). Then set the java handle&#039;s Border property as explained here: http://java.sun.com/docs/books/tutorial/uiswing/components/border.html 
Some useful examples: http://www.java2s.com/Code/Java/Swing-JFC/Border.htm

Yair</description>
		<content:encoded><![CDATA[<p>@Wei &#8211; First you need to get the underlying Java handle of the Matlab uicomponent (this is done using my FindJObj utility on the File Exchange). Then set the java handle&#8217;s Border property as explained here: <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/border.html" rel="nofollow">http://java.sun.com/docs/books/tutorial/uiswing/components/border.html</a><br />
Some useful examples: <a href="http://www.java2s.com/Code/Java/Swing-JFC/Border.htm" rel="nofollow">http://www.java2s.com/Code/Java/Swing-JFC/Border.htm</a></p>
<p>Yair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wei</title>
		<link>http://undocumentedmatlab.com/blog/setting-status-bar-text/comment-page-1/#comment-2023</link>
		<dc:creator>wei</dc:creator>
		<pubDate>Thu, 06 Aug 2009 23:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=465#comment-2023</guid>
		<description>Yair,
This is about uicomponent (e.g. JButton). How does one set button&#039;s Border property so button&#039;s appearance is isolated from PC desktop appearance Windows XP vs. Classic styles?</description>
		<content:encoded><![CDATA[<p>Yair,<br />
This is about uicomponent (e.g. JButton). How does one set button&#8217;s Border property so button&#8217;s appearance is isolated from PC desktop appearance Windows XP vs. Classic styles?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
