feval(gui_​State.gui_​OpeningFcn​, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

4 views (last 30 days)
Hi,
I have the following code: ( I am not sure why the code is not working but I am using a modern version of matlab and the code was written for an older version of matlab), your help will be greatly appreciated!
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
the error that it gives is the following:
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure),
varargin{:});
  2 Comments
Walter Roberson
Walter Roberson on 10 Aug 2021
There should have been more to the error message, saying what MATLAB thinks is wrong.
Tenzin Kunkyab
Tenzin Kunkyab on 10 Aug 2021
The whole error message looks something like this: (there isn't more to the error message for some reason)
Warning: The JavaFrame figure property will be removed in a future release. For
more information see UI Alternatives for MATLAB Apps on mathworks.com.
> In ProcessImagesTab>ProcessImagesTab_OpeningFcn (line 84)
In gui_mainfcn (line 220)
In ProcessImagesTab (line 42)
In iGel (line 28)
Error using ProcessImagesTab>ProcessImagesTab_OpeningFcn (line 91)
Java exception occurred:
java.awt.IllegalComponentStateException: The frame is decorated
at java.awt.Frame.setOpacity(Frame.java:960)
at java.awt.Window$1.setOpacity(Window.java:4037)
at com.sun.awt.AWTUtilities.setWindowOpacity(AWTUtilities.java:174)
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure),
varargin{:});
Error in ProcessImagesTab (line 42)
gui_mainfcn(gui_State, varargin{:});

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 10 Aug 2021
Apparently what you are asking to do is not permitted by Java.
But you might possibly be able to Undecorate the window.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!