Article View: borland.public.jbuilder.java.swing
Article #12074Re: JTextField ValueChanged-Event ...
From: C. Callaway
Date: Sat, 20 Feb 1999 00:00
Date: Sat, 20 Feb 1999 00:00
33 lines
1586 bytes
1586 bytes
From the Java Platform 1.2 API Specification:
The java.awt.TextArea could be monitored for changes by adding a
TextListener for TextEvent's. In the JTextComponent based components,
changes are broadcasted from the model via a DocumentEvent to
DocumentListeners. The DocumentEvent gives the location of the change and
the kind of change if desired. The code fragment might look something like:
DocumentListener myListener = ??;
JTextArea myArea = ??;
myArea.getDocument().addDocumentListener(myListener);
Ingo Fischer wrote in message <36CD730F.E553A88D@apollon.de>...
>hi !!
>
>In the 'normal' TextField there is an Event to get notified when the
>Text-value is changed.
>
>In JTextField this has changed ...
>
>There is an other Listener, but I only was able to get this listener
>notify my when the user inserts or delets an char.
>
>Then I tried to use the focuslost-Event, but then the known bug from
>JTextField comes up ...
>
>Is there ANY other idea to get notified when the user has changed the
>value of an textfield
>
>Ingo
>
Technical Details
Message-ID:
<7alv8l$hjo16@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36CD730F.E553A88D@apollon.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2130c2c4642c5ff6 X-Google-Attributes: gid111d45,public From: "C. Callaway" <cqcallaw@iname.com> Subject: Re: JTextField ValueChanged-Event ... Date: 1999/02/20 Message-ID: <7alv8l$hjo16@forums.borland.com> X-Deja-AN: 446358629 References: <36CD730F.E553A88D@apollon.de> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing