<?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: Transparent Matlab figure window	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=transparent-matlab-figure-window</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Sun, 08 Sep 2013 04:58:33 +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/transparent-matlab-figure-window#comment-259277</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 08 Sep 2013 04:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-259277</guid>

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

@Razvan - unfortunately, unlike earlier Matlab releases, R2013b relies on Java 7. One of the changes that Oracle made in Java 7 was to prevent modification of an open window&#039;s transparency, which was possible in Java 6. As consequence, &lt;i&gt;&lt;b&gt;setFigTransparency&lt;/b&gt;&lt;/i&gt;, &lt;i&gt;&lt;b&gt;blurFigure&lt;/b&gt;&lt;/i&gt; and any other Matlab utility that relies on this feature no longer work. AFAIK there is no fix for this.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-259081">Razvan</a>.</p>
<p>@Razvan &#8211; unfortunately, unlike earlier Matlab releases, R2013b relies on Java 7. One of the changes that Oracle made in Java 7 was to prevent modification of an open window&#8217;s transparency, which was possible in Java 6. As consequence, <i><b>setFigTransparency</b></i>, <i><b>blurFigure</b></i> and any other Matlab utility that relies on this feature no longer work. AFAIK there is no fix for this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Razvan		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-259081</link>

		<dc:creator><![CDATA[Razvan]]></dc:creator>
		<pubDate>Sat, 07 Sep 2013 23:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-259081</guid>

					<description><![CDATA[Hi Yair,

Is it possible to update setFigTransparency function in order to work in the latest MATLAB? It would be great if we could continue to use it after R2013b.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>Is it possible to update setFigTransparency function in order to work in the latest MATLAB? It would be great if we could continue to use it after R2013b.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Lidierth		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211859</link>

		<dc:creator><![CDATA[Malcolm Lidierth]]></dc:creator>
		<pubDate>Thu, 13 Jun 2013 02:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-211859</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211727&quot;&gt;Martin Höcker&lt;/a&gt;.

Note that AWTUtilities  simply calls the setOpacity method on the Window in Java 7. There are some conditions:
The TRANSLUCENT translucency must be supported by the underlying system
The window must not be in full-screen mode (see GraphicsDevice.setFullScreenWindow(Window))

and also (new)

The window must be undecorated (see Frame.setUndecorated(boolean) and Dialog.setUndecorated(boolean))

MATLAB figures are decorated]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211727">Martin Höcker</a>.</p>
<p>Note that AWTUtilities  simply calls the setOpacity method on the Window in Java 7. There are some conditions:<br />
The TRANSLUCENT translucency must be supported by the underlying system<br />
The window must not be in full-screen mode (see GraphicsDevice.setFullScreenWindow(Window))</p>
<p>and also (new)</p>
<p>The window must be undecorated (see Frame.setUndecorated(boolean) and Dialog.setUndecorated(boolean))</p>
<p>MATLAB figures are decorated</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211734</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 12 Jun 2013 16:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-211734</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211727&quot;&gt;Martin Höcker&lt;/a&gt;.

@Martin - indeed so, and you will need to modify this again in HG2, as described &lt;a href=&quot;http://undocumentedmatlab.com/blog/hg2-update/#observations&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211727">Martin Höcker</a>.</p>
<p>@Martin &#8211; indeed so, and you will need to modify this again in HG2, as described <a href="http://undocumentedmatlab.com/blog/hg2-update/#observations" target="_blank" rel="nofollow">here</a>&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin Höcker		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-211727</link>

		<dc:creator><![CDATA[Martin Höcker]]></dc:creator>
		<pubDate>Wed, 12 Jun 2013 15:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-211727</guid>

					<description><![CDATA[Looks great! For future reference, the code seem to need small modifications to work with Matlab 2013a. On my 32-bit Windows XP machine, I had to use:

&lt;pre lang=&#039;matlab&#039;&gt;
jFigPeer = get(handle(gcf),&#039;JavaFrame&#039;);
jWindow = jFigPeer.fHG1Client.getWindow;
com.sun.awt.AWTUtilities.setWindowOpacity(jWindow,0.7)
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Looks great! For future reference, the code seem to need small modifications to work with Matlab 2013a. On my 32-bit Windows XP machine, I had to use:</p>
<pre lang='matlab'>
jFigPeer = get(handle(gcf),'JavaFrame');
jWindow = jFigPeer.fHG1Client.getWindow;
com.sun.awt.AWTUtilities.setWindowOpacity(jWindow,0.7)
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-179791</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 11:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-179791</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-179787&quot;&gt;Dirk Engel&lt;/a&gt;.

@Dirk - welcome back!

Unfortunately, all GUI controls added via Matlab, including uicontrols and javacomponents, use a heavyweight &lt;code&gt;java.awt.Panel&lt;/code&gt; container, rather than a lightweight &lt;code&gt;javax.swing.JPanel&lt;/code&gt;. Unfortunately, the heavyweight &lt;code&gt;Panel&lt;/code&gt;s, unlike lightweight &lt;code&gt;JPanel&lt;/code&gt;s, cannot be made transparent (at least on Windows). This means that even if the control or component is made transparent, this would still have no effect since their containing &lt;code&gt;Panel&lt;/code&gt; is opaque. See an interesting discussion on this &lt;a href=&quot;https://www.mathworks.com/matlabcentral/newsreader/view_thread/268556#702864&quot;  target=&quot;_blank&quot;  rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. 

Note that while individual controls are opaque, the entire figure window can be made fully or partially transparent, as I have shown in the main article - the trick is not to update any specific control&#039;s opacity but to work at the Java &lt;code&gt;Frame&lt;/code&gt; level.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-179787">Dirk Engel</a>.</p>
<p>@Dirk &#8211; welcome back!</p>
<p>Unfortunately, all GUI controls added via Matlab, including uicontrols and javacomponents, use a heavyweight <code>java.awt.Panel</code> container, rather than a lightweight <code>javax.swing.JPanel</code>. Unfortunately, the heavyweight <code>Panel</code>s, unlike lightweight <code>JPanel</code>s, cannot be made transparent (at least on Windows). This means that even if the control or component is made transparent, this would still have no effect since their containing <code>Panel</code> is opaque. See an interesting discussion on this <a href="https://www.mathworks.com/matlabcentral/newsreader/view_thread/268556#702864"  target="_blank"  rel="nofollow">here</a>. </p>
<p>Note that while individual controls are opaque, the entire figure window can be made fully or partially transparent, as I have shown in the main article &#8211; the trick is not to update any specific control&#8217;s opacity but to work at the Java <code>Frame</code> level.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dirk Engel		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-179787</link>

		<dc:creator><![CDATA[Dirk Engel]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 11:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-179787</guid>

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

Hi Yair,

I had the same idea of using the &lt;code&gt;GlassPane&lt;/code&gt; to overlay a &lt;code&gt;JComponent&lt;/code&gt; with semi-transparent background to blur the &lt;code&gt;ContentPane&lt;/code&gt;. This would be a nice solution to your riddle which goes without a helper figure, but it seems that neither the &lt;code&gt;GlassPane&lt;/code&gt; nor other child components of the &lt;code&gt;LayeredPane&lt;/code&gt; (except the &lt;code&gt;ContentPane&lt;/code&gt;) get painted at all. Maybe the paint method of the &lt;code&gt;RootPane&lt;/code&gt; (&lt;code&gt;com.mathworks.mwswing.desk.DTRootPane&lt;/code&gt;) is responsible for this. Any ideas?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-92154">Yair Altman</a>.</p>
<p>Hi Yair,</p>
<p>I had the same idea of using the <code>GlassPane</code> to overlay a <code>JComponent</code> with semi-transparent background to blur the <code>ContentPane</code>. This would be a nice solution to your riddle which goes without a helper figure, but it seems that neither the <code>GlassPane</code> nor other child components of the <code>LayeredPane</code> (except the <code>ContentPane</code>) get painted at all. Maybe the paint method of the <code>RootPane</code> (<code>com.mathworks.mwswing.desk.DTRootPane</code>) is responsible for this. Any ideas?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ScreenCapture utility &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-148164</link>

		<dc:creator><![CDATA[ScreenCapture utility &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Mon, 28 Jan 2013 15:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-148164</guid>

					<description><![CDATA[[...] The solution of the rbbox-anywhere feature relies on using a temporary transparent window that spans the entire desktop area, capturing user rbbox clicks anywhere within the desktop area. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] The solution of the rbbox-anywhere feature relies on using a temporary transparent window that spans the entire desktop area, capturing user rbbox clicks anywhere within the desktop area. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-92154</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 23 Jun 2012 18:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-92154</guid>

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

@Julien - there may be a way to do this directly using the figure hierarchy, but I never tried it. Try using one of the other figure containers, not necessarily the glass pane. As an alternative, you can use the overlay transparent window trick mentioned in this article to draw whatever you wish on top of the uicontrols, as explained in the &lt;a href=&quot;http://undocumentedmatlab.com/blog/blurred-matlab-figure-window/&quot; rel=&quot;nofollow&quot;&gt;blurred figure window&lt;/a&gt; article.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-92121">julien</a>.</p>
<p>@Julien &#8211; there may be a way to do this directly using the figure hierarchy, but I never tried it. Try using one of the other figure containers, not necessarily the glass pane. As an alternative, you can use the overlay transparent window trick mentioned in this article to draw whatever you wish on top of the uicontrols, as explained in the <a href="http://undocumentedmatlab.com/blog/blurred-matlab-figure-window/" rel="nofollow">blurred figure window</a> article.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: julien		</title>
		<link>https://undocumentedmatlab.com/articles/transparent-matlab-figure-window#comment-92121</link>

		<dc:creator><![CDATA[julien]]></dc:creator>
		<pubDate>Sat, 23 Jun 2012 14:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2246#comment-92121</guid>

					<description><![CDATA[Hi Yair,
I would like to draw lines and rectangles above both axes and uicontrols. It would be good to use matlab figure&#039;s GlassPane (I found it in JavaFrame&#039;s hierarchy) but I failed to draw anything in it. 
I also tried to add a transparent axes which overlays the entire figure but this way, I cannot draw above uicontrols. 
Do you have suggestions ? Thanks in advance for your help !]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,<br />
I would like to draw lines and rectangles above both axes and uicontrols. It would be good to use matlab figure&#8217;s GlassPane (I found it in JavaFrame&#8217;s hierarchy) but I failed to draw anything in it.<br />
I also tried to add a transparent axes which overlays the entire figure but this way, I cannot draw above uicontrols.<br />
Do you have suggestions ? Thanks in advance for your help !</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
