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

7 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2021-8-10
There should have been more to the error message, saying what MATLAB thinks is wrong.
Tenzin Kunkyab
Tenzin Kunkyab 2021-8-10
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{:});

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by