<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598</link>
    <title>MATLAB Central Newsreader - How to change a gui's figure icon</title>
    <description>Feed for thread: How to change a gui's figure icon</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 26 Jun 2008 15:21:02 -0400</pubDate>
      <title>How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#439648</link>
      <author>Daniel </author>
      <description>I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
would like the window (figure) icon for each window to be&lt;br&gt;
different. &lt;br&gt;
&lt;br&gt;
What I mean when I say 'window icon' is the small picture&lt;br&gt;
just to the left of the window's title, and the image that&lt;br&gt;
shows up in the minimized version of the program on the&lt;br&gt;
Windows taskbar. &lt;br&gt;
&lt;br&gt;
I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
know how to change this property of a figure.&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
Daniel</description>
    </item>
    <item>
      <pubDate>Thu, 26 Jun 2008 15:46:02 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#439651</link>
      <author>matt dash</author>
      <description>&quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;g40c4u$h4b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
&amp;gt; would like the window (figure) icon for each window to be&lt;br&gt;
&amp;gt; different. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What I mean when I say 'window icon' is the small picture&lt;br&gt;
&amp;gt; just to the left of the window's title, and the image that&lt;br&gt;
&amp;gt; shows up in the minimized version of the program on the&lt;br&gt;
&amp;gt; Windows taskbar. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
&amp;gt; know how to change this property of a figure.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&amp;gt; Daniel&lt;br&gt;
&lt;br&gt;
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');&lt;br&gt;
jframe=get(handles.fig,'javaframe');&lt;br&gt;
jIcon=javax.swing.ImageIcon('C:\program&lt;br&gt;
files\matlab\r2007b\icons\icon.gif');&lt;br&gt;
jframe.setFigureIcon(jIcon);&lt;br&gt;
&lt;br&gt;
(while supplies last)</description>
    </item>
    <item>
      <pubDate>Thu, 26 Jun 2008 16:26:02 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#439663</link>
      <author>Daniel </author>
      <description>Ok, tried it. But I receive the following error:&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
jframe=get(handles.fig,'javaframe');&lt;br&gt;
&lt;br&gt;
Apparently my handles structure contains no property 'fig'.&lt;br&gt;
Any ideas? I am in R2007a.</description>
    </item>
    <item>
      <pubDate>Thu, 26 Jun 2008 16:50:19 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#439678</link>
      <author>matt dash</author>
      <description>&quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
of the figure whose icon you want to change.</description>
    </item>
    <item>
      <pubDate>Tue, 29 Jul 2008 12:01:54 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#446019</link>
      <author>doyle.tla@gmail.com</author>
      <description>On Jun 27, 12:50=A0am, &quot;matt dash&quot; &amp;lt;n...@mail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+mat...@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g40fuq$2g...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Error in =3D=3D&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; jframe=3Dget(handles.fig,'javaframe');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&lt;br&gt;
Wow I didn't think that could be done at all. I have asked Mathworks&lt;br&gt;
about that before and was told it can't be done.&lt;br&gt;
&lt;br&gt;
I am considering selling some guis, so if I do that and pay the $15k+&lt;br&gt;
I would be pretty annoyed that I couldn't brand it.&lt;br&gt;
&lt;br&gt;
Thanks, matt_dash&lt;br&gt;
&lt;br&gt;
Tim.</description>
    </item>
    <item>
      <pubDate>Tue, 29 Jul 2008 12:23:01 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#446024</link>
      <author>Bruno Luong</author>
      <description>You should be aware that by changing the icone you would&lt;br&gt;
violate Mathworks license agreement.&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Tue, 23 Feb 2010 09:30:37 -0500</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#720333</link>
      <author>Zulkifli </author>
      <description>&quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
What do you mean by pasted that out of a gui? then, where do you paste it?</description>
    </item>
    <item>
      <pubDate>Tue, 23 Feb 2010 09:32:07 -0500</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#720335</link>
      <author>Zulkifli </author>
      <description>&quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
What do you mean by pasted that out of a gui? then, where do you paste it?</description>
    </item>
    <item>
      <pubDate>Wed, 16 Jun 2010 20:09:04 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#755025</link>
      <author>uzumaki tornado</author>
      <description>&quot;Zulkifli &quot; &amp;lt;zulkifliaziz@yahoo.com&amp;gt; wrote in message &amp;lt;hm07an$ok2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; &amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What do you mean by pasted that out of a gui? then, where do you paste it?&lt;br&gt;
&lt;br&gt;
use  jframe=get(handles.output, 'javaframe');</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jun 2011 14:40:20 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839075</link>
      <author>Nickolai </author>
      <description>&quot;uzumaki tornado&quot; wrote in message &amp;lt;hvbb10$slu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Zulkifli &quot; &amp;lt;zulkifliaziz@yahoo.com&amp;gt; wrote in message &amp;lt;hm07an$ok2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; What do you mean by pasted that out of a gui? then, where do you paste it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; use  jframe=get(handles.output, 'javaframe');&lt;br&gt;
&lt;br&gt;
I tried this but I got a syntax error on the line:&lt;br&gt;
files\matlab\r2010b\icons\icon.gif');&lt;br&gt;
&lt;br&gt;
I commented it out, thinking it might have been a continuation of the previous line, but now when I run it instead of the MATLAB icon there's a java icon. Any ideas as to how to get it to change the program icon?</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jun 2011 18:50:20 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839109</link>
      <author>matt dash</author>
      <description>&quot;Nickolai&quot; wrote in message &amp;lt;is87cj$dhh$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;uzumaki tornado&quot; wrote in message &amp;lt;hvbb10$slu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Zulkifli &quot; &amp;lt;zulkifliaziz@yahoo.com&amp;gt; wrote in message &amp;lt;hm07an$ok2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; What do you mean by pasted that out of a gui? then, where do you paste it?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; use  jframe=get(handles.output, 'javaframe');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried this but I got a syntax error on the line:&lt;br&gt;
&amp;gt; files\matlab\r2010b\icons\icon.gif');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I commented it out, thinking it might have been a continuation of the previous line, but now when I run it instead of the MATLAB icon there's a java icon. Any ideas as to how to get it to change the program icon?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Don't do this. Changing the icon has a lot of unintended side effects that will screw up your whole matlab session. It's not worth it. Also as noted above, it goes against your license agreement. </description>
    </item>
    <item>
      <pubDate>Thu, 02 Jun 2011 19:20:20 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839118</link>
      <author>Nickolai </author>
      <description>&quot;matt dash&quot; wrote in message &amp;lt;is8m1c$1b9$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Nickolai&quot; wrote in message &amp;lt;is87cj$dhh$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;uzumaki tornado&quot; wrote in message &amp;lt;hvbb10$slu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Zulkifli &quot; &amp;lt;zulkifliaziz@yahoo.com&amp;gt; wrote in message &amp;lt;hm07an$ok2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message &amp;lt;g40hcb$jdd$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &quot;Daniel &quot; &amp;lt;anothermathgeek+matlab@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; message &amp;lt;g40fuq$2gh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Ok, tried it. But I receive the following error:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; hddprofile_editor&amp;gt;setWindowTitleIcon at 71&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; jframe=get(handles.fig,'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Apparently my handles structure contains no property 'fig'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Any ideas? I am in R2007a.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Sorry, i pasted that out of a gui. handles.fig is the handle&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; of the figure whose icon you want to change.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; What do you mean by pasted that out of a gui? then, where do you paste it?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; use  jframe=get(handles.output, 'javaframe');&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I tried this but I got a syntax error on the line:&lt;br&gt;
&amp;gt; &amp;gt; files\matlab\r2010b\icons\icon.gif');&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I commented it out, thinking it might have been a continuation of the previous line, but now when I run it instead of the MATLAB icon there's a java icon. Any ideas as to how to get it to change the program icon?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Don't do this. Changing the icon has a lot of unintended side effects that will screw up your whole matlab session. It's not worth it. Also as noted above, it goes against your license agreement. &lt;br&gt;
&lt;br&gt;
I'm not really sure why changing the icon on an exe file would screw up my MATLAB session?&lt;br&gt;
&lt;br&gt;
Also I'm not sure that poster really understood the question. What I'm trying to do is avoid the MATLAB icon showing up when I run my standalone application. If Mathworks didn't allow it I'm not sure they would write how-to's: &lt;a href=&quot;http://www.mathworks.com/support/solutions/en/data/1-324E1D/?solution=1-324E1D&quot;&gt;http://www.mathworks.com/support/solutions/en/data/1-324E1D/?solution=1-324E1D&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
For the record, I have looked at that page but I think it assumes the user has visual studio, which I do not, and so I'm hoping this method might be easier.&lt;br&gt;
&lt;br&gt;
I appreciate the concern but not doing it is simply not an option, I intend to distribute my program so having it show up with the MATLAB icon is unacceptable.</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jun 2011 21:05:07 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839141</link>
      <author>pink </author>
      <description>&quot;Daniel&quot; wrote in message &amp;lt;g40c4u$h4b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
&amp;gt; would like the window (figure) icon for each window to be&lt;br&gt;
&amp;gt; different. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What I mean when I say 'window icon' is the small picture&lt;br&gt;
&amp;gt; just to the left of the window's title, and the image that&lt;br&gt;
&amp;gt; shows up in the minimized version of the program on the&lt;br&gt;
&amp;gt; Windows taskbar. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
&amp;gt; know how to change this property of a figure.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&amp;gt; Daniel&lt;br&gt;
&lt;br&gt;
try to use this&lt;br&gt;
function main_OpeningFcn(hObject, eventdata, handles, varargin)&lt;br&gt;
% This function has no output args, see OutputFcn.&lt;br&gt;
% hObject    handle to figure&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
% varargin   command line arguments to main (see VARARGIN)&lt;br&gt;
&lt;br&gt;
% Choose default command line output for main&lt;br&gt;
handles.output = hObject;&lt;br&gt;
&lt;br&gt;
% Update handles structure&lt;br&gt;
guidata(hObject, handles);&lt;br&gt;
&lt;br&gt;
javaFrame = get(hObject,'JavaFrame');&lt;br&gt;
javaFrame.setFigureIcon(javax.swing.ImageIcon('icon.JPG'));&lt;br&gt;
&lt;br&gt;
icon.jpg located in the same folder with folders figures&lt;br&gt;
&lt;br&gt;
pink</description>
    </item>
    <item>
      <pubDate>Thu, 02 Jun 2011 21:30:08 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839147</link>
      <author>Nickolai </author>
      <description>&quot;pink&quot; wrote in message &amp;lt;is8tu3$qge$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Daniel&quot; wrote in message &amp;lt;g40c4u$h4b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
&amp;gt; &amp;gt; would like the window (figure) icon for each window to be&lt;br&gt;
&amp;gt; &amp;gt; different. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; What I mean when I say 'window icon' is the small picture&lt;br&gt;
&amp;gt; &amp;gt; just to the left of the window's title, and the image that&lt;br&gt;
&amp;gt; &amp;gt; shows up in the minimized version of the program on the&lt;br&gt;
&amp;gt; &amp;gt; Windows taskbar. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
&amp;gt; &amp;gt; know how to change this property of a figure.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thanks!&lt;br&gt;
&amp;gt; &amp;gt; Daniel&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; try to use this&lt;br&gt;
&amp;gt; function main_OpeningFcn(hObject, eventdata, handles, varargin)&lt;br&gt;
&amp;gt; % This function has no output args, see OutputFcn.&lt;br&gt;
&amp;gt; % hObject    handle to figure&lt;br&gt;
&amp;gt; % eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
&amp;gt; % handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&amp;gt; % varargin   command line arguments to main (see VARARGIN)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Choose default command line output for main&lt;br&gt;
&amp;gt; handles.output = hObject;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Update handles structure&lt;br&gt;
&amp;gt; guidata(hObject, handles);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; javaFrame = get(hObject,'JavaFrame');&lt;br&gt;
&amp;gt; javaFrame.setFigureIcon(javax.swing.ImageIcon('icon.JPG'));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; icon.jpg located in the same folder with folders figures&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; pink&lt;br&gt;
&lt;br&gt;
Woot, it worked! For a second I didn't see it because Windows 7 grouped it with MATLAB down in the taskbar but it's there and it works. Thanks!</description>
    </item>
    <item>
      <pubDate>Fri, 03 Jun 2011 15:34:04 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839275</link>
      <author>matt dash</author>
      <description>&quot;Nickolai&quot; wrote in message &amp;lt;is8vd0$179$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;pink&quot; wrote in message &amp;lt;is8tu3$qge$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Daniel&quot; wrote in message &amp;lt;g40c4u$h4b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; would like the window (figure) icon for each window to be&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; different. &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; What I mean when I say 'window icon' is the small picture&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; just to the left of the window's title, and the image that&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; shows up in the minimized version of the program on the&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Windows taskbar. &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; know how to change this property of a figure.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks!&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Daniel&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; try to use this&lt;br&gt;
&amp;gt; &amp;gt; function main_OpeningFcn(hObject, eventdata, handles, varargin)&lt;br&gt;
&amp;gt; &amp;gt; % This function has no output args, see OutputFcn.&lt;br&gt;
&amp;gt; &amp;gt; % hObject    handle to figure&lt;br&gt;
&amp;gt; &amp;gt; % eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
&amp;gt; &amp;gt; % handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&amp;gt; &amp;gt; % varargin   command line arguments to main (see VARARGIN)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; % Choose default command line output for main&lt;br&gt;
&amp;gt; &amp;gt; handles.output = hObject;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; % Update handles structure&lt;br&gt;
&amp;gt; &amp;gt; guidata(hObject, handles);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; javaFrame = get(hObject,'JavaFrame');&lt;br&gt;
&amp;gt; &amp;gt; javaFrame.setFigureIcon(javax.swing.ImageIcon('icon.JPG'));&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; icon.jpg located in the same folder with folders figures&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; pink&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Woot, it worked! For a second I didn't see it because Windows 7 grouped it with MATLAB down in the taskbar but it's there and it works. Thanks!&lt;br&gt;
&lt;br&gt;
The license issue is because the license agreement says you are not allowed to cover or obscure any mathworks logo. As it happens, the default figure icon is a mathworks logo, so changing it could be interpreted as obscuring their logo. Whether or not they really care about this is anyone's guess.&lt;br&gt;
&lt;br&gt;
When using the method described in this thread to change icons, i have had issues in windows xp (maybe later versions too, i can't recall) where after changing the icon on one figure, subsequent figures are created with no icon, which is annoying for identifying them in the taskbar. I have also has issues where after changing the figure icon of any figure, the pop up boxes in the editor that tell you the current values of variables stop appearing. Like you, i have no idea why this strange side effect happens, but I'm certain this is the cause. So keep that in mind before you implement this on something you're going to distribute... it might really annoy your users. </description>
    </item>
    <item>
      <pubDate>Fri, 03 Jun 2011 16:17:04 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#839276</link>
      <author>pink </author>
      <description>&quot;matt dash&quot; wrote in message &amp;lt;isautc$efm$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Nickolai&quot; wrote in message &amp;lt;is8vd0$179$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;pink&quot; wrote in message &amp;lt;is8tu3$qge$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Daniel&quot; wrote in message &amp;lt;g40c4u$h4b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I am writing a large multi-windowed GUI in MATLAB and I&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; would like the window (figure) icon for each window to be&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; different. &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; What I mean when I say 'window icon' is the small picture&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; just to the left of the window's title, and the image that&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; shows up in the minimized version of the program on the&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Windows taskbar. &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I am familiar with adding icons to uibuttons, but do not&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; know how to change this property of a figure.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks!&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Daniel&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; try to use this&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; function main_OpeningFcn(hObject, eventdata, handles, varargin)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % This function has no output args, see OutputFcn.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % hObject    handle to figure&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % varargin   command line arguments to main (see VARARGIN)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % Choose default command line output for main&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; handles.output = hObject;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; % Update handles structure&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; guidata(hObject, handles);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; javaFrame = get(hObject,'JavaFrame');&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; javaFrame.setFigureIcon(javax.swing.ImageIcon('icon.JPG'));&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; icon.jpg located in the same folder with folders figures&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; pink&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Woot, it worked! For a second I didn't see it because Windows 7 grouped it with MATLAB down in the taskbar but it's there and it works. Thanks!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The license issue is because the license agreement says you are not allowed to cover or obscure any mathworks logo. As it happens, the default figure icon is a mathworks logo, so changing it could be interpreted as obscuring their logo. Whether or not they really care about this is anyone's guess.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When using the method described in this thread to change icons, i have had issues in windows xp (maybe later versions too, i can't recall) where after changing the icon on one figure, subsequent figures are created with no icon, which is annoying for identifying them in the taskbar. I have also has issues where after changing the figure icon of any figure, the pop up boxes in the editor that tell you the current values of variables stop appearing. Like you, i have no idea why this strange side effect happens, but I'm certain this is the cause. So keep that in mind before you implement this on something you're going to distribute... it might really annoy your users. &lt;br&gt;
&lt;br&gt;
hi, mat&lt;br&gt;
if ever it gives side effects, how the steps how to change the icon that true?</description>
    </item>
    <item>
      <pubDate>Tue, 14 Jun 2011 13:00:18 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#841034</link>
      <author>Nor Muzakkir </author>
      <description>&lt;a href=&quot;http://www.mathworks.com/support/contact_us/dev/javaframe.html&quot;&gt;http://www.mathworks.com/support/contact_us/dev/javaframe.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
they are removing the JavaFrame property. probably to stop others from replacing the MATLAB icon logo.</description>
    </item>
    <item>
      <pubDate>Tue, 04 Oct 2011 15:13:25 -0400</pubDate>
      <title>Re: How to change a gui's figure icon</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171598#854080</link>
      <author>ny </author>
      <description>&amp;gt; Also I'm not sure that poster really understood the question. What I'm trying to do is avoid the MATLAB icon showing up when I run my standalone application. If Mathworks didn't allow it I'm not sure they would write how-to's: &lt;a href=&quot;http://www.mathworks.com/support/solutions/en/data/1-324E1D/?solution=1-324E1D&quot;&gt;http://www.mathworks.com/support/solutions/en/data/1-324E1D/?solution=1-324E1D&lt;/a&gt;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
--&amp;gt; this is how to change the desktop icon (short-cut to the exe file), not the figure icon..</description>
    </item>
  </channel>
</rss>

