<?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: uigetfile/uiputfile customizations	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uigetfile-uiputfile-customizations</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 30 Oct 2020 21:01:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: James		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-509096</link>

		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Fri, 30 Oct 2020 21:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-509096</guid>

					<description><![CDATA[Is there a way to change the location of the window? They pop up at random locations and the user has to chase them down.]]></description>
			<content:encoded><![CDATA[<p>Is there a way to change the location of the window? They pop up at random locations and the user has to chase them down.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: spencer		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508720</link>

		<dc:creator><![CDATA[spencer]]></dc:creator>
		<pubDate>Thu, 11 Jun 2020 22:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-508720</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508719&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks for your reply, Yair.

I am trying to find a workaround to replace uigetdir. Below setting in the code can help to select folder and file together.
 hjFileChooser.setFileSelectionMode(2);]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508719">Yair Altman</a>.</p>
<p>Thanks for your reply, Yair.</p>
<p>I am trying to find a workaround to replace uigetdir. Below setting in the code can help to select folder and file together.<br />
 hjFileChooser.setFileSelectionMode(2);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508719</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 11 Jun 2020 21:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-508719</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508715&quot;&gt;spencer&lt;/a&gt;.

Folder selection can be done using the &lt;code&gt;uigetdir&lt;/code&gt; function]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508715">spencer</a>.</p>
<p>Folder selection can be done using the <code>uigetdir</code> function</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: spencer		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-508715</link>

		<dc:creator><![CDATA[spencer]]></dc:creator>
		<pubDate>Thu, 11 Jun 2020 04:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-508715</guid>

					<description><![CDATA[Thanks, Yair.

I am not familiar with Java, is there any easiest way to modified it for folder selection? thanks]]></description>
			<content:encoded><![CDATA[<p>Thanks, Yair.</p>
<p>I am not familiar with Java, is there any easiest way to modified it for folder selection? thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-478462</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 21 May 2019 09:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-478462</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-476931&quot;&gt;Jafa&lt;/a&gt;.

@Jafa - the simplest way to add buttons is to adapt the Matlab source-code of the uigetfile_with_preview utility (around line #95) by adding Matlab uicontrols in the preview panel. Modifying the Java component (&lt;code&gt;JFileChooser&lt;/code&gt;) would be more difficult.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-476931">Jafa</a>.</p>
<p>@Jafa &#8211; the simplest way to add buttons is to adapt the Matlab source-code of the uigetfile_with_preview utility (around line #95) by adding Matlab uicontrols in the preview panel. Modifying the Java component (<code>JFileChooser</code>) would be more difficult.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jafa		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-476931</link>

		<dc:creator><![CDATA[Jafa]]></dc:creator>
		<pubDate>Sat, 04 May 2019 18:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-476931</guid>

					<description><![CDATA[Hello Yair,

thanks a lot for your helpful work! 

Regarding uigetfile customizations, I am curious if there is the possibility of having multiple buttons (in my case I am looking for a 3rd button). 

Thanks for your Reply!]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>thanks a lot for your helpful work! </p>
<p>Regarding uigetfile customizations, I am curious if there is the possibility of having multiple buttons (in my case I am looking for a 3rd button). </p>
<p>Thanks for your Reply!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-403480</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 22 Mar 2017 09:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-403480</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-403358&quot;&gt;ODJAPO&lt;/a&gt;.

@ODJAPO - well, the &lt;code&gt;javax.swing.JFileChooser&lt;/code&gt; and &lt;code&gt;com.mathworks.hg.util.dFileChooser&lt;/code&gt; classes have a &lt;i&gt;setApproveButtonText()&lt;/i&gt; method that you can use for this:

&lt;pre lang=&quot;matlab&quot;&gt;
hFig = figure(&#039;Name&#039;,&#039;Select directory&#039;, &#039;NumberTitle&#039;,&#039;off&#039;);
jfs = javaObjectEDT(&#039;com.mathworks.hg.util.dFileChooser&#039;);  % or: com.mathworks.hg.util.dFileChooser
[hjfs,hContainer] = javacomponent(jfs, [0,0,hFig.Position(3:4)], hFig);
hjfs.setApproveButtonText(&#039;Set directory&#039;);  % or: set(hjfs,&#039;ApproveButtonText&#039;,&#039;Set directory&#039;)
&lt;/pre&gt;

You can edit my &lt;i&gt;uigetfile_with_preview.m&lt;/i&gt; utility (which is referenced in the main article text above) accordingly. I do not advise modifying Matlab&#039;s builtin &lt;i&gt;&lt;b&gt;uigetdir&lt;/b&gt;&lt;/i&gt; function directly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-403358">ODJAPO</a>.</p>
<p>@ODJAPO &#8211; well, the <code>javax.swing.JFileChooser</code> and <code>com.mathworks.hg.util.dFileChooser</code> classes have a <i>setApproveButtonText()</i> method that you can use for this:</p>
<pre lang="matlab">
hFig = figure('Name','Select directory', 'NumberTitle','off');
jfs = javaObjectEDT('com.mathworks.hg.util.dFileChooser');  % or: com.mathworks.hg.util.dFileChooser
[hjfs,hContainer] = javacomponent(jfs, [0,0,hFig.Position(3:4)], hFig);
hjfs.setApproveButtonText('Set directory');  % or: set(hjfs,'ApproveButtonText','Set directory')
</pre>
<p>You can edit my <i>uigetfile_with_preview.m</i> utility (which is referenced in the main article text above) accordingly. I do not advise modifying Matlab&#8217;s builtin <i><b>uigetdir</b></i> function directly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ODJAPO		</title>
		<link>https://undocumentedmatlab.com/articles/uigetfile-uiputfile-customizations#comment-403358</link>

		<dc:creator><![CDATA[ODJAPO]]></dc:creator>
		<pubDate>Mon, 20 Mar 2017 06:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6728#comment-403358</guid>

					<description><![CDATA[Hello,

Is there an easy way to change the button name of a classic uigetfile windows as &quot;set file directory&quot; instead of &quot;Open&quot; ?

Thanks for your answer.]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Is there an easy way to change the button name of a classic uigetfile windows as &#8220;set file directory&#8221; instead of &#8220;Open&#8221; ?</p>
<p>Thanks for your answer.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
