Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / October 2006

Tip: Looking for answers? Try searching our database.

how not to close the first window before the second window closes

Thread view: 
PJava - 26 Oct 2006 04:37 GMT
Dear all,

I call a second JDialog in the first JDialog. Before the second windows
closes, the first one already closed.

Please help me!  Thanks a lot!
Andrew Thompson - 26 Oct 2006 04:44 GMT
...
> I call a second JDialog in the first JDialog. Before the second windows
> closes, the first one already closed.
>
> Please help me!

Please ask a question!

To be more specific, that question might include
- the code
- the expected or desired behaviour
- the observed or actual behaviour
- a sentence ending in '?'
Of those 4 things, I only see one (observed behaviour).

Andrew T.
PJava - 26 Oct 2006 04:54 GMT
Dear Andrew,

Thanks. It's observed behavior. The first window closed before the
second window, but I'd like to keep the first stay there and do
something more after getting the result from the second window.

I am a beginner of Java. I appreciate you help me with my problem.

Cheers,
Paul

> ...
> > I call a second JDialog in the first JDialog. Before the second windows
[quoted text clipped - 12 lines]
>
> Andrew T.
Andrew Thompson - 26 Oct 2006 06:04 GMT
> Dear Andrew,

I am nobody's 'dear'.

> Thanks.

Your future lack of top-posting, will be thanks enough.
The post suggests you miss parts of messages
when top-posting as well*.

>..It's observed behavior. The first window closed before the
> second window, but I'd like to keep the first stay there and do
> something more after getting the result from the second window.

Try making the second JDialog to modal=true, and all
input will be blocked until it is dismissed, but then
(according to your statements) the first JDialog will
immedately close in any case.

This all depends on *..

> I am a beginner of Java.

This is a GUI problem, and you have chosen a good group
to pursue it, however I will mention that there is a group
especially well suited to those *starting* Java, it is
comp.lang.java.help, and GUI related problems are also
regularly discussed there.

...
> > To be more specific, that question might include
> > - the code

* 'the code' you are using, which is nowhere in sight.
Try preparing an SSCCE** and submitting it if you have
further problems, as code speaks a thousand words
(of explanations and descriptions).

** <http://www.physci.org/codes/sscce/>

Andrew T.
PJava - 26 Oct 2006 22:53 GMT
HI Andrew,

I appreciate all of you guys' help! I did follow the some suggestion,
and conquered the problem.

--Paul

> > Dear Andrew,
>
[quoted text clipped - 35 lines]
>
> ** <http://www.physci.org/codes/sscce/>

This is a nice idea:-)

> Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.