Article View: be.comp.programming
Article #6168Re: java:invoer ene scherm opvragen in ander scherm
From: Kristof Vermaelen
Date: Sat, 04 Jan 2003 13:45
Date: Sat, 04 Jan 2003 13:45
63 lines
3010 bytes
3010 bytes
"Kristof Vermaelen" <kristofvermaelen@hotmail.com> wrote in message
news:MuBR9.88269$Ti2.12239@afrodite.telenet-ops.be...
>
> "Thunderbird" <goeroe@linuxmail.org> wrote in message
> news:pan.2003.01.04.13.04.01.283985@linuxmail.org...
> > 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
> >
> >
>
> nee, maar maak een methode
>
> public String getNaamPatient()
> {
> return txtNaamPatient.getText();
> }
> , in den ipv pob = zpd.getObject() ; = > String gezochtItem =
> a.getNaamPatient();
>
> probeer dees is
>
>
>
met wat roept ge diee JFrame op ? Me nen button ?
private String gezochtItem;
MenuItem.addActionListener(new AbstractAction("kweeni wa")
{
public void actionPerformed(ActionEvent e)
{
NieuwVenster a = NieuwVenster();
gezochtItem =a.getIngevoerdeTekst();
//best ook nekeer testen of u tesktveld wel ingevuld was
}
}
Technical Details
Message-ID:
<5ABR9.88285$Ti2.12251@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!skynet.be!skynet.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> <pan.2003.01.04.13.04.01.283985@linuxmail.org> <MuBR9.88269$Ti2.12239@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:45:38 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail From: "Kristof Vermaelen" <kristofvermaelen@hotmail.com> Newsgroups: be.comp.programming References: <pan.2003.01.03.22.23.00.519538@linuxmail.org> <SyAR9.88139$Ti2.12179@afrodite.telenet-ops.be> <pan.2003.01.04.13.04.01.283985@linuxmail.org> <MuBR9.88269$Ti2.12239@afrodite.telenet-ops.be> Subject: Re: java:invoer ene scherm opvragen in ander scherm Lines: 71 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <5ABR9.88285$Ti2.12251@afrodite.telenet-ops.be> Date: Sat, 04 Jan 2003 13:45:37 GMT NNTP-Posting-Host: 213.118.143.219 X-Complaints-To: abuse@telenet.be X-Trace: afrodite.telenet-ops.be 1041687937 213.118.143.219 (Sat, 04 Jan 2003 14:45:37 MET) NNTP-Posting-Date: Sat, 04 Jan 2003 14:45:37 MET Organization: Telenet Internet