Article View: be.comp.programming
Article #6165Re: java:invoer ene scherm opvragen in ander scherm
From: Thunderbird
Date: Sat, 04 Jan 2003 13:04
Date: Sat, 04 Jan 2003 13:04
24 lines
2000 bytes
2000 bytes
On Sat, 04 Jan 2003 12:36:02 +0000, Kristof Vermaelen wrote:
> zoek = new JMenuItem("Zoek");
> zoek.addActionListener(new AbstractAction("Zoek")
> {
> public void actionPerformed(ActionEvent e)
> {
> ZoekPatientDialogBox zpd = new ZoekPatientDialogBox(null);
> pob = zpd.getObject() ;
> if(pob!=null)
> {
> //hier nog wa zever
> }
Laat ons nu veronderstellen dat in zpd een tekstveld 'txtNaamPatient'
staat. Ik vul daar bijvoorbeeld 'Peters' in en ik druk op de OK knop die
ook in zpd staat.
Hoe krijg ik dan de waarde Peters in deze actionListener?
Ik denk niet dat getObject() hiervoor geschikt zal zijn, tenzij ik het mis
op heb.
Groeten,
Gregory
Technical Details
Message-ID:
<pan.2003.01.04.13.04.01.283985@linuxmail.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet!diablo.netcom.net.uk!netcom.net.uk!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailReferences:
<pan.2003.01.03.22.23.00.519538@linuxmail.org> <SyAR9.88139$Ti2.12179@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,820a29a7d6430de8 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-01-04 05:11:19 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet!diablo.netcom.net.uk!netcom.net.uk!193.190.198.17.MISMATCH!syros.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail From: "Thunderbird" <goeroe@linuxmail.org> Subject: Re: java:invoer ene scherm opvragen in ander scherm User-Agent: Pan/0.13.0 (The whole remains beautiful) Message-ID: <pan.2003.01.04.13.04.01.283985@linuxmail.org> Newsgroups: be.comp.programming References: <pan.2003.01.03.22.23.00.519538@linuxmail.org> <SyAR9.88139$Ti2.12179@afrodite.telenet-ops.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Lines: 26 Date: Sat, 04 Jan 2003 13:04:00 GMT NNTP-Posting-Host: 213.119.244.15 X-Complaints-To: abuse@telenet.be X-Trace: afrodite.telenet-ops.be 1041685440 213.119.244.15 (Sat, 04 Jan 2003 14:04:00 MET) NNTP-Posting-Date: Sat, 04 Jan 2003 14:04:00 MET Organization: Telenet Internet