MATLAB Answers

Java Icon after packaging standalone application

1 view (last 30 days)
Packy
Packy on 13 Oct 2016
Commented: Cleber Gama on 11 Jul 2019
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:
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
javaFrame = get(hObject,'JavaFrame');
javaFrame.setFigureIcon(javax.swing.ImageIcon('ICONA.png'));
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!

Answers (1)

Prasad Mendu
Prasad Mendu on 19 Oct 2016
Edited: Prasad Mendu on 19 Oct 2016
Unfortunately, the ability to change that Java icon you are referring to into a custom one is not supported yet by MATLAB.
  2 Comments
Cleber Gama
Cleber Gama on 11 Jul 2019
i am with this problem too. Did you solved this?

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!