Article View: aus.computers.java
Article #211Re: How to notify parent frame?
From: Paul Murray
Date: Wed, 29 Aug 2001 00:15
Date: Wed, 29 Aug 2001 00:15
25 lines
2569 bytes
2569 bytes
"DP" <Dang@csse.monash.edu.au> wrote in message news:9lii69$lpl$1@towncrier.cc.monash.edu.au... > hi, > > I've got a problem like this. > > I have a 'Main' JFrame, which has buttons. I click on 'show Options' button, > another 'Options' JFrame appears. After I have selected all options in > 'Options' JFrame, I then click 'Ok' button or 'Cancel' button. The 'Main' > JFrame needs to know whether I have clicked 'Ok' or 'Cancel' button, ie. it > has to wait until I dispose 'Options' JFrame. 1 - Pass the options frame (in the constructor or in a method) a callback object. 2 - Have the parent frame listen to WindowEvents on the child frame. __________________________________________________ Jer 48:10 A curse on him who is lax in doing the Lord's work! A curse on him who keeps his sword from bloodshed! Mk 16:16 He that believeth and is baptized shall be saved; but he that believeth not shall be damned. The real message of christianity is, and always has been, "Be a christian!".
Technical Details
Message-ID:
<1d5j7.6202$Nd2.100881@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sunqbc.risq.qc.ca!newsfeed.mathworks.com!intgwlon.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mailReferences:
<9lii69$lpl$1@towncrier.cc.monash.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,fa8d12f43d1c0f85 X-Google-Attributes: gidf5d71,public X-Google-Thread: f82aa,fa8d12f43d1c0f85 X-Google-Attributes: gidf82aa,public X-Google-Thread: 10fd6d,fa8d12f43d1c0f85 X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10a146,fa8d12f43d1c0f85 X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,fa8d12f43d1c0f85 X-Google-Attributes: gid113ae9,public X-Google-Thread: 10d6db,fa8d12f43d1c0f85 X-Google-Attributes: gid10d6db,public X-Google-ArrivalTime: 2001-08-29 05:36:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sunqbc.risq.qc.ca!newsfeed.mathworks.com!intgwlon.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail From: "Paul Murray" <pmurray@nospam.bigpond.com> Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.programmer,it.comp.java References: <9lii69$lpl$1@towncrier.cc.monash.edu.au> Subject: Re: How to notify parent frame? Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: <1d5j7.6202$Nd2.100881@newsfeeds.bigpond.com> Date: Wed, 29 Aug 2001 10:15:46 +1000 NNTP-Posting-Host: 203.54.250.70 X-Trace: newsfeeds.bigpond.com 999088061 203.54.250.70 (Wed, 29 Aug 2001 22:27:41 EST) NNTP-Posting-Date: Wed, 29 Aug 2001 22:27:41 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com)