Effacer les filtres
Effacer les filtres

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

7 vues (au cours des 30 derniers jours)
Tenzin Kunkyab
Tenzin Kunkyab le 10 Août 2021
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 commentaires
Walter Roberson
Walter Roberson le 10 Août 2021
There should have been more to the error message, saying what MATLAB thinks is wrong.
Tenzin Kunkyab
Tenzin Kunkyab le 10 Août 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{:});

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by