Java Icon after packaging standalone application
4 ビュー (過去 30 日間)
Hi all!!! I'm trying to replace the default matlab icon in the top left corner of my gui; i've read that it is possible to choose it with the deploytool but i cannot reach my goal; after selecting the desired icon, the only thing that changes is the application icon (and not the one in the top left corner). I've tried with this code:
javaFrame = get(hObject,'JavaFrame');
Running the code (as script) the change works great, but after packaging the standalone application appears the java icon in the top left corner.
Someone could help me?
Thank you very much for the attention!
回答 (2 件)
Yair Altman 2022 年 10 月 27 日
編集済み: Yair Altman 2022 年 10 月 27 日
The icon image needs to be placed next to the executable when you run the program, otherwise it will not be found and the default Java icon is used. You can easily add this file in the "Files installed for your end users" section, at the bottom of the deploy-tool window, next to where the exe filename is displayed.
(for old Matlab releases with the old build tool, add it to the "shared resource and helper file" section of the Build tab, as shown here)