<?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: Panel-level uicontrols	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/panel-level-uicontrols/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=panel-level-uicontrols</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 02 May 2017 23:35:58 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Matt		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-405837</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 02 May 2017 23:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-405837</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-405788&quot;&gt;Garuve&lt;/a&gt;.

Garuve, one easy way to put a control on top of a panel simply put the panel as the parent. 

&lt;pre lang=&quot;matlab&quot;&gt;
exampleFigure = figure;
hp = uipanel(&#039;Title&#039;,&#039;Main Panel&#039;,&#039;FontSize&#039;,12,...
             &#039;BackgroundColor&#039;,&#039;white&#039;,...
             &#039;Position&#039;,[.25 .1 .67 .67],...
             &#039;Units&#039;, &#039;Normalized&#039;);
cb = uicontrol(hp,&#039;style&#039;,&#039;checkbox&#039;,&#039;position&#039;,[100,100, 20,20])
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-405788">Garuve</a>.</p>
<p>Garuve, one easy way to put a control on top of a panel simply put the panel as the parent. </p>
<pre lang="matlab">
exampleFigure = figure;
hp = uipanel('Title','Main Panel','FontSize',12,...
             'BackgroundColor','white',...
             'Position',[.25 .1 .67 .67],...
             'Units', 'Normalized');
cb = uicontrol(hp,'style','checkbox','position',[100,100, 20,20])
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Garuve		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-405788</link>

		<dc:creator><![CDATA[Garuve]]></dc:creator>
		<pubDate>Tue, 02 May 2017 07:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-405788</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345904&quot;&gt;Kusi&lt;/a&gt;.

@Yair: Could you provide an example of doing this (in HG2)? I can&#039;t get it to work (i.e. I don&#039;t know how to put a checkbox uicontrol &#039;on top of&#039; the panel?
Very much appreciated!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345904">Kusi</a>.</p>
<p>@Yair: Could you provide an example of doing this (in HG2)? I can&#8217;t get it to work (i.e. I don&#8217;t know how to put a checkbox uicontrol &#8216;on top of&#8217; the panel?<br />
Very much appreciated!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345906</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 23 Feb 2015 12:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-345906</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345904&quot;&gt;Kusi&lt;/a&gt;.

@Kusi - no: in HG2 (R2014b) the Matlab &lt;i&gt;&lt;b&gt;uipanel&lt;/b&gt;&lt;/i&gt; is (finally!) implemented as a true Java Swing component (deriving from &lt;code&gt;JPanel&lt;/code&gt;), and the title is implemented as a standard Java titled-border. In other words, it is no longer a separate uicontrol. 

Instead, you can simply place a dedicated checkbox &lt;i&gt;&lt;b&gt;uicontrol&lt;/b&gt;&lt;/i&gt; on top of the panel, you just need to ensure the position is correct and normalized so that it moves with the panel when it changes its size/position.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345904">Kusi</a>.</p>
<p>@Kusi &#8211; no: in HG2 (R2014b) the Matlab <i><b>uipanel</b></i> is (finally!) implemented as a true Java Swing component (deriving from <code>JPanel</code>), and the title is implemented as a standard Java titled-border. In other words, it is no longer a separate uicontrol. </p>
<p>Instead, you can simply place a dedicated checkbox <i><b>uicontrol</b></i> on top of the panel, you just need to ensure the position is correct and normalized so that it moves with the panel when it changes its size/position.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kusi		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-345904</link>

		<dc:creator><![CDATA[Kusi]]></dc:creator>
		<pubDate>Mon, 23 Feb 2015 11:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-345904</guid>

					<description><![CDATA[In R2014b, it seems like the TitleHandle property is gone. Is there another way to have panel-level check boxes?]]></description>
			<content:encoded><![CDATA[<p>In R2014b, it seems like the TitleHandle property is gone. Is there another way to have panel-level check boxes?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326156</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 11 Jun 2014 13:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-326156</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326153&quot;&gt;Patrick Holland&lt;/a&gt;.

@Patrick - just do as I suggested, read the link I provided.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326153">Patrick Holland</a>.</p>
<p>@Patrick &#8211; just do as I suggested, read the link I provided.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick Holland		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326153</link>

		<dc:creator><![CDATA[Patrick Holland]]></dc:creator>
		<pubDate>Wed, 11 Jun 2014 13:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-326153</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326152&quot;&gt;Yair Altman&lt;/a&gt;.

Hello Mr. Altman,
i don&#039;t understand. It&#039;s from your own post here.

https://www.mathworks.com/matlabcentral/newsreader/view_thread/148636]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326152">Yair Altman</a>.</p>
<p>Hello Mr. Altman,<br />
i don&#8217;t understand. It&#8217;s from your own post here.</p>
<p><a href="https://www.mathworks.com/matlabcentral/newsreader/view_thread/148636" rel="nofollow ugc">https://www.mathworks.com/matlabcentral/newsreader/view_thread/148636</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326152</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 11 Jun 2014 13:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-326152</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326150&quot;&gt;Patrick Holland&lt;/a&gt;.

@Patrick - you used &lt;i&gt;&lt;b&gt;javacomponent&lt;/b&gt;&lt;/i&gt; incorrectly. Read about the correct usage here: http://undocumentedmatlab.com/blog/javacomponent

If you&#039;d like my consulting help with setting up a scroll-panel and other such advanced GUI stuff, please contact me offline - my email link is at the top-right of this page.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326150">Patrick Holland</a>.</p>
<p>@Patrick &#8211; you used <i><b>javacomponent</b></i> incorrectly. Read about the correct usage here: <a href="http://undocumentedmatlab.com/blog/javacomponent" rel="ugc">http://undocumentedmatlab.com/blog/javacomponent</a></p>
<p>If you&#8217;d like my consulting help with setting up a scroll-panel and other such advanced GUI stuff, please contact me offline &#8211; my email link is at the top-right of this page.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick Holland		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-326150</link>

		<dc:creator><![CDATA[Patrick Holland]]></dc:creator>
		<pubDate>Wed, 11 Jun 2014 13:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-326150</guid>

					<description><![CDATA[Hello Mr. Altman,
I don&#039;t know where exactly to ask, so I ask here.
I found in the internet one respond from you
&lt;pre lang=&quot;matlab&quot;&gt;
[jPanel,hPanel] = javacomponent(javax.swing.JPanel);
set(hPanel, &#039;units&#039;,&#039;normalized&#039;,&#039;position&#039;,[.1,.1,.8,.8]);
hControl = uicontrol(&#039;style&#039;,&#039;pushbutton&#039;, &#039;parent&#039;,hPanel, &#039;string&#039;,&#039;click me&#039;);
&lt;/pre&gt;
I have tried this code with Matlab 2013b and the Panel is empty somehow. I don&#039;t know why.
But my question IS... I want to add an undetermined amount of editboxes and labels to a panel. It can be 1 or 32 or even more.
I don&#039;t want to resize them according to the space because then they would be extremely too small. So i need a Scrollbar.

I thought to use a JPanel and put it in a JScrollpane, but i failed at the first step up there. The jPanel is empty.
Do you know what&#039;s wrong?

greetings]]></description>
			<content:encoded><![CDATA[<p>Hello Mr. Altman,<br />
I don&#8217;t know where exactly to ask, so I ask here.<br />
I found in the internet one respond from you</p>
<pre lang="matlab">
[jPanel,hPanel] = javacomponent(javax.swing.JPanel);
set(hPanel, 'units','normalized','position',[.1,.1,.8,.8]);
hControl = uicontrol('style','pushbutton', 'parent',hPanel, 'string','click me');
</pre>
<p>I have tried this code with Matlab 2013b and the Panel is empty somehow. I don&#8217;t know why.<br />
But my question IS&#8230; I want to add an undetermined amount of editboxes and labels to a panel. It can be 1 or 32 or even more.<br />
I don&#8217;t want to resize them according to the space because then they would be extremely too small. So i need a Scrollbar.</p>
<p>I thought to use a JPanel and put it in a JScrollpane, but i failed at the first step up there. The jPanel is empty.<br />
Do you know what&#8217;s wrong?</p>
<p>greetings</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-315961</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 26 Feb 2014 07:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-315961</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-315949&quot;&gt;Ninad kubal&lt;/a&gt;.

@Ninad - you can try to use &lt;a target=&quot;_blank&quot; href=&quot;http://undocumentedmatlab.com/blog/continuous-slider-callback/#Property_Listener&quot; rel=&quot;nofollow&quot;&gt;property-change listeners&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-315949">Ninad kubal</a>.</p>
<p>@Ninad &#8211; you can try to use <a target="_blank" href="http://undocumentedmatlab.com/blog/continuous-slider-callback/#Property_Listener" rel="nofollow">property-change listeners</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ninad kubal		</title>
		<link>https://undocumentedmatlab.com/articles/panel-level-uicontrols#comment-315949</link>

		<dc:creator><![CDATA[Ninad kubal]]></dc:creator>
		<pubDate>Wed, 26 Feb 2014 05:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1976#comment-315949</guid>

					<description><![CDATA[Can i add callback on any property change of matlab uipanel or uicontrol?]]></description>
			<content:encoded><![CDATA[<p>Can i add callback on any property change of matlab uipanel or uicontrol?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
