Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 MAT LAB GUI,我想将标题栏上的默认图标更改为我的自定义图标。请就这个问题提供帮助。
这样做您将违反可在 ..\MATLAB\<>\licence.txt 中找到的许可协议
实际上可能:(但不要这样做)
假设图形句柄是hFigure,那么:
hFigure
javaFrame = get(hFigure,'JavaFrame'); iconFilePath = 'iconImage.jpg'; javaFrame.setFigureIcon(javax.swing.ImageIcon(iconFilePath));