<?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: Blurred Matlab figure window	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/blurred-matlab-figure-window/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/blurred-matlab-figure-window?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blurred-matlab-figure-window</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 21 Apr 2011 16:13:43 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/blurred-matlab-figure-window#comment-40737</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 16:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2259#comment-40737</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/blurred-matlab-figure-window#comment-40735&quot;&gt;Paul Andrews&lt;/a&gt;.

@Paul - nice touch! thanks for sharing the idea :-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/blurred-matlab-figure-window#comment-40735">Paul Andrews</a>.</p>
<p>@Paul &#8211; nice touch! thanks for sharing the idea 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul Andrews		</title>
		<link>https://undocumentedmatlab.com/articles/blurred-matlab-figure-window#comment-40735</link>

		<dc:creator><![CDATA[Paul Andrews]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 16:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2259#comment-40735</guid>

					<description><![CDATA[Yair,

This is another great post.  Thank you very much for sharing it.  For those of us who are trying to develop professional applications using Matlab and the Matlab Compiler, your blog is extremely helpful.

Now, I do have a suggestion regarding your blurFigure function.  How about using a JWindow, with opacity set to 0.8, and overlaying it over the figure?  JWindow has the advantage of not having boarders, titles, menubars, etc.  
The code below shows you what I had in mind.

Best regards,

Paul
&lt;pre lang=&#039;matlab&#039;&gt;
%% Blur using JWindow
% JWindow is like a JFrame, but without borders or menu bar. 
  
h=figure(1);
plot(1:10);
jFrame = getjframe(h);
  
% Create blank panel
panel = javaObjectEDT(&#039;javax.swing.JPanel&#039;);
 
% Create jWindow with jFrame as its owner, and add the blank panel
jWindow = javax.swing.JWindow(jFrame); pause(0.1); % the pause is needed to ensure the object is created before proceeding
jWindow.pack;
jWindow.getContentPane().add(panel);
  
% Pause
disp(&#039;Press any key to blur the figure&#039;)
pause
  
%Set size and location to match jFrame
jWindow.setSize(jFrame.getContentPane().getSize);
jWindow.setLocation(jFrame.getContentPane().getLocationOnScreen);

% Make jWindow semi-transparent and visible
com.sun.awt.AWTUtilities.setWindowOpacity(jWindow,0.85);
jWindow.setVisible(true);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Yair,</p>
<p>This is another great post.  Thank you very much for sharing it.  For those of us who are trying to develop professional applications using Matlab and the Matlab Compiler, your blog is extremely helpful.</p>
<p>Now, I do have a suggestion regarding your blurFigure function.  How about using a JWindow, with opacity set to 0.8, and overlaying it over the figure?  JWindow has the advantage of not having boarders, titles, menubars, etc.<br />
The code below shows you what I had in mind.</p>
<p>Best regards,</p>
<p>Paul</p>
<pre lang='matlab'>
%% Blur using JWindow
% JWindow is like a JFrame, but without borders or menu bar. 
  
h=figure(1);
plot(1:10);
jFrame = getjframe(h);
  
% Create blank panel
panel = javaObjectEDT('javax.swing.JPanel');
 
% Create jWindow with jFrame as its owner, and add the blank panel
jWindow = javax.swing.JWindow(jFrame); pause(0.1); % the pause is needed to ensure the object is created before proceeding
jWindow.pack;
jWindow.getContentPane().add(panel);
  
% Pause
disp('Press any key to blur the figure')
pause
  
%Set size and location to match jFrame
jWindow.setSize(jFrame.getContentPane().getSize);
jWindow.setLocation(jFrame.getContentPane().getLocationOnScreen);

% Make jWindow semi-transparent and visible
com.sun.awt.AWTUtilities.setWindowOpacity(jWindow,0.85);
jWindow.setVisible(true);
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
