Skip to content

Commit

Permalink
Comment out figure icon replace hack to get rid of annoying warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
btasdelen committed Jun 10, 2022
1 parent 41da2f4 commit 0b81448
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arrShow.m
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,11 @@
end

% change figure icon :-)
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
jframe=get(obj.fh,'javaframe');
jIcon=javax.swing.ImageIcon(fullfile(iconPath,'figure.png'));
jframe.setFigureIcon(jIcon);
clear jframe jIcon
% warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
% jframe=get(obj.fh,'javaframe');
% jIcon=javax.swing.ImageIcon(fullfile(iconPath,'figure.png'));
% jframe.setFigureIcon(jIcon);
% clear jframe jIcon

% init menu- and toolbar
obj.initMenuBar();
Expand Down

0 comments on commit 0b81448

Please sign in to comment.