Hello
I'm opening a gui1 from a Main gui but when I close the gui1 ,anything in the Main gui doesn't work or actually I can't press it!
How can fix it?
Thanks
----------Edited Post----------------
%--------------Draw Influence Line Button-----------------------
btLineprops = com.mathworks.mwswing.MJButton('Draw Influence Line');
set(btLineprops, 'ActionPerformedCallback',@DrawInLine);
placeJavaComponent(btLineprops,[1.13,0.07,0.24,0.8], h.panel2);
%--------------Draw Influence Line Function-----------------------
function DrawInLine(hObject, eventdata, handles)
cylinder_tube_patch()

댓글 수: 1

Jan
Jan 2014년 2월 1일
This is not enough information to allow an answer. Please add more details by editing the question.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2014년 2월 1일

0 개 추천

To get focus back to the main gui, you would probably use
figure(1);
However, the bit about "actually I can't press it" sounds like it is more of a problem. Are you using GUIDE ? How are you invoking the second GUI? Are you setting the main GUI to 'visible', 'off' when you open gui1 ?

댓글 수: 5

Rayane
Rayane 2014년 2월 2일
Hello, thank you
Yes I'm using gui
no I'm not setting the main gui to visible off
figure(1) opened a new figure
please check my post again below edited post
Walter Roberson
Walter Roberson 2014년 2월 2일
You do not appear to be using GUIDE.
How are you invoking the second GUI? Is it that cylinder_tube_patch() call?
Rayane
Rayane 2014년 2월 2일
no I'm using guide and java at the same time because I didn't like the uicontrols of matlab like buttons and popupmenus ...
yes the gui1 call is cylinder_tube_patch()
Thank you for replying again :)
Walter Roberson
Walter Roberson 2014년 2월 2일
And to check, the GUI that cylinder_tube_patch() creates was created by GUIDE as well?
Rayane
Rayane 2014년 2월 2일
yes

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2014년 2월 1일

댓글:

2014년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by