Matlab changes the GUI and figure in the upper left corner of the icon method, and generate EXE file

Source: Internet
Author: User

1. Changes in the upper left-hand corner of the GUI, assuming that the GUI tag is Figure1 and added in its OPENINGFCN
h = handles.figure1; % returns its handle
Newicon = Javax.swing.ImageIcon (' 1.jpg ')
Figframe = Get (H, ' javaframe '); % obtained figure of the javaframe.
Figframe.setfigureicon (Newicon); % Change Icon
%%% How to generate EXE files in the attachment
2. Change of icons in the upper left corner of the general graphics window
Clear
Newicon=javax.swing.imageicon (' 1.jpg ');
H=figure; % creates a figure and returns its handle
Figframe = Get (H, ' javaframe '); % obtained figure of the javaframe.
Figframe.setfigureicon (Newicon); % Change Icon

Http://www.ilovematlab.cn/thread-21915-1-1.html

Http://blog.sina.com.cn/s/blog_4d633dc70100nz7q.html

Matlab changes the GUI and figure in the upper left corner of the icon method, and generate EXE file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.