<?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: Setting system tray popup messages</title>
	<atom:link href="http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/feed/" rel="self" type="application/rss+xml" />
	<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/</link>
	<description>Charting Matlab's unsupported hidden underbelly</description>
	<lastBuildDate>Thu, 09 Sep 2010 11:59:30 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Setting status-bar text &#124; Undocumented Matlab</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-11421</link>
		<dc:creator>Setting status-bar text &#124; Undocumented Matlab</dc:creator>
		<pubDate>Wed, 23 Jun 2010 10:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-11421</guid>
		<description>[...] Note: Users interested in non-intrusive status-bar messages, may also be interested in another non-intrusive messaging mechanism which I have described some months ago: Setting system tray popup messages. [...]</description>
		<content:encoded><![CDATA[<p>[...] Note: Users interested in non-intrusive status-bar messages, may also be interested in another non-intrusive messaging mechanism which I have described some months ago: Setting system tray popup messages. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-11138</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 16 Jun 2010 09:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-11138</guid>
		<description>Dear Yair

This looks like a great utility. Unfortunately it does not work properly on my system (Matlab 2010a, Windows XP, Java 1.6.0_12-b04). To start with I call

&lt;pre lang=&quot;matlab&quot;&gt;
hIcon = systray(&#039;C:\Program Files\MATLAB\R2010a\toolbox\matlab\icons\help_ex.png&#039;);
&lt;/pre&gt;

Afterwards, the only command that works is the set command for deletion. Setting message pop-ups and the like does not work (does not yield any error messages, but does not affect the icon).

Furthermore, if I click the icon in the system tray I get the exception pasted below.

Have you any suggestions on how to get around this. I have tried the exception fix you link to on the uisplitpane post, but that does not help either. Thanks for a great site and lots of cool applications

Peter
&lt;pre lang=&quot;matlab&quot;&gt;
Exception in thread “AWT-EventQueue-0″ java.lang.ClassCastException: 
java.awt.TrayIcon cannot be cast to java.awt.Component
at com.mathworks.widgets.tooltip.ToolTipAndComponentAWTListener.mouseInTipComponent(ToolTipAndComponentAWTListener.java:175)
at com.mathworks.widgets.tooltip.ToolTipAndComponentAWTListener.eventDispatched(ToolTipAndComponentAWTListener.java:125)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
...
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.TrayIcon.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Dear Yair</p>
<p>This looks like a great utility. Unfortunately it does not work properly on my system (Matlab 2010a, Windows XP, Java 1.6.0_12-b04). To start with I call</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">hIcon = systray<span style="color: #080;">&#40;</span><span style="color:#A020F0;">'C:\Program Files\MATLAB\R2010a\toolbox\matlab\icons\help_ex.png'</span><span style="color: #080;">&#41;</span>;</pre></div></div>

<p>Afterwards, the only command that works is the set command for deletion. Setting message pop-ups and the like does not work (does not yield any error messages, but does not affect the icon).</p>
<p>Furthermore, if I click the icon in the system tray I get the exception pasted below.</p>
<p>Have you any suggestions on how to get around this. I have tried the exception fix you link to on the uisplitpane post, but that does not help either. Thanks for a great site and lots of cool applications</p>
<p>Peter</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">Exception in thread “AWT-EventQueue-<span style="color: #33f;">0</span>″ java.<span style="">lang</span>.<span style="">ClassCastException</span><span style="color: #F0F;">:</span> 
java.<span style="">awt</span>.<span style="">TrayIcon</span> cannot be cast to java.<span style="">awt</span>.<span style="">Component</span>
at com.<span style="">mathworks</span>.<span style="">widgets</span>.<span style="">tooltip</span>.<span style="">ToolTipAndComponentAWTListener</span>.<span style="">mouseInTipComponent</span><span style="color: #080;">&#40;</span>ToolTipAndComponentAWTListener.<span style="">java</span><span style="color: #F0F;">:</span><span style="color: #33f;">175</span><span style="color: #080;">&#41;</span>
at com.<span style="">mathworks</span>.<span style="">widgets</span>.<span style="">tooltip</span>.<span style="">ToolTipAndComponentAWTListener</span>.<span style="">eventDispatched</span><span style="color: #080;">&#40;</span>ToolTipAndComponentAWTListener.<span style="">java</span><span style="color: #F0F;">:</span><span style="color: #33f;">125</span><span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">Toolkit</span>$SelectiveAWTEventListener.<span style="">eventDispatched</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">Toolkit</span>$ToolkitEventMulticaster.<span style="">eventDispatched</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
<span style="color: #F0F;">...</span>
<span style="">at</span> java.<span style="">awt</span>.<span style="">Toolkit</span>$ToolkitEventMulticaster.<span style="">eventDispatched</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">Toolkit</span>.<span style="">notifyAWTEventListeners</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">TrayIcon</span>.<span style="">dispatchEvent</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventQueue</span>.<span style="">dispatchEvent</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">pumpOneEventForFilters</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">pumpEventsForFilter</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">pumpEventsForHierarchy</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">pumpEvents</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">pumpEvents</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span>
at java.<span style="">awt</span>.<span style="">EventDispatchThread</span>.<span style="">run</span><span style="color: #080;">&#40;</span>Unknown Source<span style="color: #080;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-10785</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Sat, 05 Jun 2010 18:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-10785</guid>
		<description>@andandgui - did you even read the SoundVolume help?

SoundVolume is not a variable that you can assign like SoundVolume=10, but a function that accepts input parameters like SoundVolume (1.0) and it only accepts values between 0.0-1.0 so 10 is not a valid value.

Also, next time, please post the question in the relevant page (http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/) - your question has nothing to do with this page.</description>
		<content:encoded><![CDATA[<p>@andandgui &#8211; did you even read the SoundVolume help?</p>
<p>SoundVolume is not a variable that you can assign like SoundVolume=10, but a function that accepts input parameters like SoundVolume (1.0) and it only accepts values between 0.0-1.0 so 10 is not a valid value.</p>
<p>Also, next time, please post the question in the relevant page (<a href="http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/" rel="nofollow">http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/</a>) &#8211; your question has nothing to do with this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andandgui</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-10767</link>
		<dc:creator>andandgui</dc:creator>
		<pubDate>Fri, 04 Jun 2010 19:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-10767</guid>
		<description>i couldn&#039;t run SoundVolume function on Matlab.. When i write SoundVolume=10; then nothing happens .. How can i run the SoundVolume function which is written at 

http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/</description>
		<content:encoded><![CDATA[<p>i couldn&#8217;t run SoundVolume function on Matlab.. When i write SoundVolume=10; then nothing happens .. How can i run the SoundVolume function which is written at </p>
<p><a href="http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/" rel="nofollow">http://undocumentedmatlab.com/blog/updating-speaker-sound-volume/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-5539</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Sun, 27 Dec 2009 22:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-5539</guid>
		<description>Albert - it should work on Matlab installations that run JVM 1.6+. To determine your JVM version, type the following in your Command Window:

&lt;pre lang=&quot;matlab&quot;&gt;version -java&lt;/pre&gt;

If this is not helpful, try to inspect the trayIcon object using the &lt;b&gt;&lt;i&gt;methodsview&lt;/i&gt;&lt;/b&gt; function, to see why the &lt;i&gt;getClass&lt;/i&gt; method fails:

&lt;pre lang=&quot;matlab&quot;&gt;methodsview(trayIcon);&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Albert &#8211; it should work on Matlab installations that run JVM 1.6+. To determine your JVM version, type the following in your Command Window:</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #0000FF;">version</span> -java</pre></div></div>

<p>If this is not helpful, try to inspect the trayIcon object using the <b><i>methodsview</i></b> function, to see why the <i>getClass</i> method fails:</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">methodsview<span style="color: #080;">&#40;</span>trayIcon<span style="color: #080;">&#41;</span>;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-5317</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Thu, 17 Dec 2009 12:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-5317</guid>
		<description>On the version (R2007b) of Matlab I use this statement does not work:
trayIconClasses = trayIcon.getClass.getClasses;
??? No method &#039;getClass&#039; with matching signature found for class &#039;java.awt.TrayIcon&#039;.

Is it supprted on later versions?</description>
		<content:encoded><![CDATA[<p>On the version (R2007b) of Matlab I use this statement does not work:<br />
trayIconClasses = trayIcon.getClass.getClasses;<br />
??? No method &#8216;getClass&#8217; with matching signature found for class &#8216;java.awt.TrayIcon&#8217;.</p>
<p>Is it supprted on later versions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Updating speaker sound volume &#124; Undocumented Matlab</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-3272</link>
		<dc:creator>Updating speaker sound volume &#124; Undocumented Matlab</dc:creator>
		<pubDate>Thu, 15 Oct 2009 16:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-3272</guid>
		<description>[...] Unfortunately, Matlab prevents using Java classnames containing a period (e.g., Port.Info) or static Interface values, so we cannot directly access Port.Info.SPEAKER or FloatControl.Type.VOLUME. I&#039;ve reported this bug to Mathworks earlier this year, and I do not know in which Matlab release (if at all) they intend to fix it. Until then we need to use workarounds, as in the code above. I posted a similar issue (and its workaround) earlier in this blog, when setting system-tray popup message. [...]</description>
		<content:encoded><![CDATA[<p>[...] Unfortunately, Matlab prevents using Java classnames containing a period (e.g., Port.Info) or static Interface values, so we cannot directly access Port.Info.SPEAKER or FloatControl.Type.VOLUME. I&#8217;ve reported this bug to Mathworks earlier this year, and I do not know in which Matlab release (if at all) they intend to fix it. Until then we need to use workarounds, as in the code above. I posted a similar issue (and its workaround) earlier in this blog, when setting system-tray popup message. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason McMains</title>
		<link>http://undocumentedmatlab.com/blog/setting-system-tray-popup-messages/comment-page-1/#comment-1674</link>
		<dc:creator>Jason McMains</dc:creator>
		<pubDate>Fri, 10 Jul 2009 15:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=130#comment-1674</guid>
		<description>Yair,
Thanks again for this utility, just thought I would let you know that I&#039;m using this to replace any helpdlg boxes that I previously used to give process direction during a program, like click here, or define this range. Using this, a user can breeze through a program if they know what to do, or go slowly and read the pop-ups.</description>
		<content:encoded><![CDATA[<p>Yair,<br />
Thanks again for this utility, just thought I would let you know that I&#8217;m using this to replace any helpdlg boxes that I previously used to give process direction during a program, like click here, or define this range. Using this, a user can breeze through a program if they know what to do, or go slowly and read the pop-ups.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
