<?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: Customizing Matlab uipanels	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-matlab-uipanels</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 20 Jul 2017 01:56:09 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: OrO		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-410531</link>

		<dc:creator><![CDATA[OrO]]></dc:creator>
		<pubDate>Thu, 20 Jul 2017 01:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-410531</guid>

					<description><![CDATA[It helps a lot. Thank you !
Does it work in MATLAB Compiler ? I do not see a reason why it should not but I would like to have your confirmation.]]></description>
			<content:encoded><![CDATA[<p>It helps a lot. Thank you !<br />
Does it work in MATLAB Compiler ? I do not see a reason why it should not but I would like to have your confirmation.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-363533</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 07 Dec 2015 21:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-363533</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-363518&quot;&gt;Mhyd&lt;/a&gt;.

@Mhyd - simple: Google &quot;java border&quot; and the very first search result is Java&#039;s official tutorial on &lt;a href=&quot;https://docs.oracle.com/javase/tutorial/uiswing/components/border.html&quot; rel=&quot;nofollow&quot;&gt;how to use Java borders&lt;/a&gt;, and this includes a short discussion of various predefined border styles, including &lt;code&gt;LineBorder&lt;/code&gt; which is the simplest border.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-363518">Mhyd</a>.</p>
<p>@Mhyd &#8211; simple: Google &#8220;java border&#8221; and the very first search result is Java&#8217;s official tutorial on <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/border.html" rel="nofollow">how to use Java borders</a>, and this includes a short discussion of various predefined border styles, including <code>LineBorder</code> which is the simplest border.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mhyd		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-363518</link>

		<dc:creator><![CDATA[Mhyd]]></dc:creator>
		<pubDate>Mon, 07 Dec 2015 17:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-363518</guid>

					<description><![CDATA[Hi Yair,

Thanks for sharing this info.
I was wondering how would one potentially remember these commands :
&lt;pre lang=&#039;matlab&#039;&gt;
jNewBorder = javax.swing.border.LineBorder(jColor, 1, true);  % red, 1px, rounded=true
jPanel.getBorder.setBorder(jNewBorder);
&lt;/pre&gt;

as in how would one know to look specifically  into &lt;code&gt;javax.swing.border.LineBorder&lt;/code&gt; to create the new java border..
seems a long name to commit to memory]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>Thanks for sharing this info.<br />
I was wondering how would one potentially remember these commands :</p>
<pre lang='matlab'>
jNewBorder = javax.swing.border.LineBorder(jColor, 1, true);  % red, 1px, rounded=true
jPanel.getBorder.setBorder(jNewBorder);
</pre>
<p>as in how would one know to look specifically  into <code>javax.swing.border.LineBorder</code> to create the new java border..<br />
seems a long name to commit to memory</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-360576</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 04 Nov 2015 08:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-360576</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-360574&quot;&gt;lsh&lt;/a&gt;.

@LSH - this is probably an &lt;a href=&quot;http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt&quot; rel=&quot;nofollow&quot;&gt;EDT timing issue&lt;/a&gt;. Add a call to &lt;i&gt;&lt;b&gt;drawnow&lt;/b&gt;&lt;/i&gt; before requesting the PrintableComponent.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-360574">lsh</a>.</p>
<p>@LSH &#8211; this is probably an <a href="http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt" rel="nofollow">EDT timing issue</a>. Add a call to <i><b>drawnow</b></i> before requesting the PrintableComponent.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: lsh		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-360574</link>

		<dc:creator><![CDATA[lsh]]></dc:creator>
		<pubDate>Wed, 04 Nov 2015 08:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-360574</guid>

					<description><![CDATA[Hi Yair,

I found that when I invoke jpanel.JavaFrame.getPrintableComponent in my script, it will return something like this:
&lt;code&gt;com.mathworks.hg.peer.ui.UIPanelPeer$UIPanelJPanel[,0,0,0x0,invalid,layout=...]&lt;/code&gt;

However when I invoke this in the command window, it will return normal value:
&lt;code&gt;com.mathworks.hg.peer.ui.UIPanelPeer$UIPanelJPanel[,0,0,300x300,layout=...]&lt;/code&gt;

Why does this happen?
I was using MATLAB 2014b.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I found that when I invoke jpanel.JavaFrame.getPrintableComponent in my script, it will return something like this:<br />
<code>com.mathworks.hg.peer.ui.UIPanelPeer$UIPanelJPanel[,0,0,0x0,invalid,layout=...]</code></p>
<p>However when I invoke this in the command window, it will return normal value:<br />
<code>com.mathworks.hg.peer.ui.UIPanelPeer$UIPanelJPanel[,0,0,300x300,layout=...]</code></p>
<p>Why does this happen?<br />
I was using MATLAB 2014b.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stan		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-348586</link>

		<dc:creator><![CDATA[Stan]]></dc:creator>
		<pubDate>Tue, 28 Apr 2015 15:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-348586</guid>

					<description><![CDATA[I have experienced the same problem with position values getting reset for controls within panels.  I believe that this does not happen if the figure is changed to be non-resizable.]]></description>
			<content:encoded><![CDATA[<p>I have experienced the same problem with position values getting reset for controls within panels.  I believe that this does not happen if the figure is changed to be non-resizable.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346261</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 05 Mar 2015 16:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-346261</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346260&quot;&gt;Tom&lt;/a&gt;.

@Tom - ...or to hire a professional Matlab expert to do it for you... :-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346260">Tom</a>.</p>
<p>@Tom &#8211; &#8230;or to hire a professional Matlab expert to do it for you&#8230; 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346260</link>

		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Thu, 05 Mar 2015 16:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-346260</guid>

					<description><![CDATA[I have found that GUIDE graphics are impossibly broken in 2014b. In the guide designer, controls disappear and cannot be made to reappear only with great effort and luck. In addition, controls with normalized units sometimes have their position values reset to all zeros or to 0 and 1. 

The only workaround I have gotten from Mathworks is to convert to a programmatic interface.]]></description>
			<content:encoded><![CDATA[<p>I have found that GUIDE graphics are impossibly broken in 2014b. In the guide designer, controls disappear and cannot be made to reappear only with great effort and luck. In addition, controls with normalized units sometimes have their position values reset to all zeros or to 0 and 1. </p>
<p>The only workaround I have gotten from Mathworks is to convert to a programmatic interface.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346081</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 28 Feb 2015 16:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-346081</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346055&quot;&gt;Julien&lt;/a&gt;.

@Julien - I assume this is done for performance reasons, graphics being drawn by native C code. However I don&#039;t know this for a fact.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346055">Julien</a>.</p>
<p>@Julien &#8211; I assume this is done for performance reasons, graphics being drawn by native C code. However I don&#8217;t know this for a fact.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Julien		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346055</link>

		<dc:creator><![CDATA[Julien]]></dc:creator>
		<pubDate>Fri, 27 Feb 2015 21:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5595#comment-346055</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346021&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks... I was dreaming to a world where axes would have their own containers so that they could be added to any Java container, or could be scrolled.
So, there are still 2 overlayed content panes, one for uicontrols and uipanels and another for graphics (actually 2, depending on renderer). Do you have an idea of the reason why graphics is drawn like this at the canvas level ?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-matlab-uipanels#comment-346021">Yair Altman</a>.</p>
<p>Thanks&#8230; I was dreaming to a world where axes would have their own containers so that they could be added to any Java container, or could be scrolled.<br />
So, there are still 2 overlayed content panes, one for uicontrols and uipanels and another for graphics (actually 2, depending on renderer). Do you have an idea of the reason why graphics is drawn like this at the canvas level ?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
