<?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: Animated busy (spinning) icon	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=animated-busy-spinning-icon</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 07 Sep 2018 13:42:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: marc		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439603</link>

		<dc:creator><![CDATA[marc]]></dc:creator>
		<pubDate>Fri, 07 Sep 2018 13:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-439603</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439388&quot;&gt;Collin Pecora&lt;/a&gt;.

Thank you very much ! It did the job ;-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439388">Collin Pecora</a>.</p>
<p>Thank you very much ! It did the job 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Collin Pecora		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439388</link>

		<dc:creator><![CDATA[Collin Pecora]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 08:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-439388</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439074&quot;&gt;Marc&lt;/a&gt;.

Marc,

I don&#039;t understand why, but BusyAffordance uses the &lt;code&gt;MJPanel&lt;/code&gt;&#039;s font to measure the busy text, but uses the UIManager&#039;s &lt;code&gt;Label.font&lt;/code&gt; to draw it.
So, you can do something like below, have not tested on the 2009 and below version.

&lt;pre lang=&quot;matlab&quot; highlight=&quot;1-3,18-19,29&quot;&gt;
jOldFont = javax.swing.UIManager.getFont(&#039;Label.font&#039;); % get Label.font
jNewFont = jOldFont.deriveFont(20);                     % derive a new font with size 20
javax.swing.UIManager.put(&#039;Label.font&#039;,jNewFont)        % set Label.font to the new font

try
    % R2010a and newer
    iconsClassName = &#039;com.mathworks.widgets.BusyAffordance$AffordanceSize&#039;;
    iconsSizeEnums = javaMethod(&#039;values&#039;,iconsClassName);
    SIZE_32x32 = iconsSizeEnums(2);  % (1) = 16x16,  (2) = 32x32
    jObj = com.mathworks.widgets.BusyAffordance(SIZE_32x32, &#039;testing...&#039;);  % icon, label
catch
    % R2009b and earlier
    redColor   = java.awt.Color(1,0,0);
    blackColor = java.awt.Color(0,0,0);
    jObj = com.mathworks.widgets.BusyAffordance(redColor, blackColor);
end

jPanel = jObj.getComponent;       % get the MJPanel 
jPanel.setFont(jNewFont)          % set the panel&#039;s font to the new font

jObj.setPaintsWhenStopped(true);  % default = false
jObj.useWhiteDots(false);         % default = false (true is good for dark backgrounds)
javacomponent(jObj.getComponent, [10,10,80,80], gcf);
jObj.start;
    % do some long operation...
jObj.stop;
jObj.setBusyText(&#039;All done!&#039;);

javax.swing.UIManager.put(&#039;Label.font&#039;,jOldFont) % undo what we changed
 &lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439074">Marc</a>.</p>
<p>Marc,</p>
<p>I don&#8217;t understand why, but BusyAffordance uses the <code>MJPanel</code>&#8216;s font to measure the busy text, but uses the UIManager&#8217;s <code>Label.font</code> to draw it.<br />
So, you can do something like below, have not tested on the 2009 and below version.</p>
<pre lang="matlab" highlight="1-3,18-19,29">
jOldFont = javax.swing.UIManager.getFont('Label.font'); % get Label.font
jNewFont = jOldFont.deriveFont(20);                     % derive a new font with size 20
javax.swing.UIManager.put('Label.font',jNewFont)        % set Label.font to the new font

try
    % R2010a and newer
    iconsClassName = 'com.mathworks.widgets.BusyAffordance$AffordanceSize';
    iconsSizeEnums = javaMethod('values',iconsClassName);
    SIZE_32x32 = iconsSizeEnums(2);  % (1) = 16x16,  (2) = 32x32
    jObj = com.mathworks.widgets.BusyAffordance(SIZE_32x32, 'testing...');  % icon, label
catch
    % R2009b and earlier
    redColor   = java.awt.Color(1,0,0);
    blackColor = java.awt.Color(0,0,0);
    jObj = com.mathworks.widgets.BusyAffordance(redColor, blackColor);
end

jPanel = jObj.getComponent;       % get the MJPanel 
jPanel.setFont(jNewFont)          % set the panel's font to the new font

jObj.setPaintsWhenStopped(true);  % default = false
jObj.useWhiteDots(false);         % default = false (true is good for dark backgrounds)
javacomponent(jObj.getComponent, [10,10,80,80], gcf);
jObj.start;
    % do some long operation...
jObj.stop;
jObj.setBusyText('All done!');

javax.swing.UIManager.put('Label.font',jOldFont) % undo what we changed
 </pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439116</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 04 Sep 2018 21:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-439116</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439074&quot;&gt;Marc&lt;/a&gt;.

I am not aware of a way to modify the text font. You might have thought that &lt;code&gt;jObj.getComponent.setFont(jObj.getComponent.getFont.deriveFont(20))&lt;/code&gt; would do the trick, but in fact it just shifts the text label without modifying its font.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439074">Marc</a>.</p>
<p>I am not aware of a way to modify the text font. You might have thought that <code>jObj.getComponent.setFont(jObj.getComponent.getFont.deriveFont(20))</code> would do the trick, but in fact it just shifts the text label without modifying its font.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marc		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-439074</link>

		<dc:creator><![CDATA[Marc]]></dc:creator>
		<pubDate>Tue, 04 Sep 2018 13:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-439074</guid>

					<description><![CDATA[Hi,

How could we increase the size of the text below (&quot;testing...&quot;) ?

Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>How could we increase the size of the text below (&#8220;testing&#8230;&#8221;) ?</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-431547</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 02 Jul 2018 10:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-431547</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-431531&quot;&gt;Tobias&lt;/a&gt;.

@Tobias - I do not have an immediate answer. You can easily open the Jar files (for example &lt;i&gt;%matlabroot%/java/jar/mlwidgets.jar&lt;/i&gt;) using WinZip or WinRAR and check this. If you would like me to spend time to investigate this for you, then please contact me by email for private consulting.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-431531">Tobias</a>.</p>
<p>@Tobias &#8211; I do not have an immediate answer. You can easily open the Jar files (for example <i>%matlabroot%/java/jar/mlwidgets.jar</i>) using WinZip or WinRAR and check this. If you would like me to spend time to investigate this for you, then please contact me by email for private consulting.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tobias		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-431531</link>

		<dc:creator><![CDATA[Tobias]]></dc:creator>
		<pubDate>Mon, 02 Jul 2018 09:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-431531</guid>

					<description><![CDATA[Hi,

I&#039;m trying to use the ProgressBarDialog in Matlab R2018a. However, it seems to be missing from the com.mathworks.mlwidgets package.

Do you know if it has been removed completely or just renamed or moved to another package?

Thank you!]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to use the ProgressBarDialog in Matlab R2018a. However, it seems to be missing from the com.mathworks.mlwidgets package.</p>
<p>Do you know if it has been removed completely or just renamed or moved to another package?</p>
<p>Thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-416373</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 13 Nov 2017 14:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-416373</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-416371&quot;&gt;BenBen&lt;/a&gt;.

@Ben - I am not aware of any way to set multi-line text in the &lt;code&gt;BusyAffordance&lt;/code&gt; object]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-416371">BenBen</a>.</p>
<p>@Ben &#8211; I am not aware of any way to set multi-line text in the <code>BusyAffordance</code> object</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: BenBen		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-416371</link>

		<dc:creator><![CDATA[BenBen]]></dc:creator>
		<pubDate>Mon, 13 Nov 2017 14:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-416371</guid>

					<description><![CDATA[Is there a way to get multiple text lines in the jObj.setBusyText? Thanks !]]></description>
			<content:encoded><![CDATA[<p>Is there a way to get multiple text lines in the jObj.setBusyText? Thanks !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Piyush Khajanji		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-399287</link>

		<dc:creator><![CDATA[Piyush Khajanji]]></dc:creator>
		<pubDate>Tue, 31 Jan 2017 21:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-399287</guid>

					<description><![CDATA[How to remove the Background Box/Square after the processing automatically, I am able to set invisible property to text but not Background. Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>How to remove the Background Box/Square after the processing automatically, I am able to set invisible property to text but not Background. Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-385681</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 14 Aug 2016 09:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=4769#comment-385681</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-385608&quot;&gt;Richard&lt;/a&gt;.

While BusyAffordance and ProgressBarDialog icons cannot be modified externally, but you can create your own animated icon as Malcolm noted or as explained here: http://undocumentedmatlab.com/blog/displaying-animated-gifs (or using one of the other mechanisms that I referenced in my post text above).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/animated-busy-spinning-icon#comment-385608">Richard</a>.</p>
<p>While BusyAffordance and ProgressBarDialog icons cannot be modified externally, but you can create your own animated icon as Malcolm noted or as explained here: <a href="http://undocumentedmatlab.com/blog/displaying-animated-gifs" rel="ugc">http://undocumentedmatlab.com/blog/displaying-animated-gifs</a> (or using one of the other mechanisms that I referenced in my post text above).</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
