Antony Amicone wrote:i have a dialog that calls another one while pressing a button. I would like that the first dialog is blocked till the second one is opened. How to do?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Jan Hoppmann wrote:With this.setVisible();. this always references the current object.
Michael Dunn wrote:in your first post
"i have a dialog that calls another one while pressing a button."
then in your 3rd post
"when i calls the second window, i am into the first, so i do secondwindows.setVisible(true) but how can i call the method on the window i already am? i am in that class already"
so, you state you are doing 'something', then you later ask how to do that same 'something'?
smells troll-ish to me.
Michael Dunn wrote:
if a separate class, you'd need to pass a reference of the dialog to the listener class
Antony Amicone wrote:i know is confused that code, i usually write the code but this time i wanted to try netbeans to create a dialog.
i'm gonna reading the page you told me, but is there the answer i need? i dunno how to do that
pete stein wrote:
Antony Amicone wrote:i know is confused that code, i usually write the code but this time i wanted to try netbeans to create a dialog.
Your netbeans generated code though is too long for us to reasonably go through and modify. This is why we asked you for a simplified version. We don't want to see the whole program but rather just a small compilable program that demonstrates your problem and that we can easily understand and modify.
i'm gonna reading the page you told me, but is there the answer i need? i dunno how to do that
My link is to the Sun Swing tutorials. As I mention above, Michael's posts solve your immediate problem.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
She'll be back. I'm just gonna wait here. With this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|