🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12078

Re: JTextField ValueChanged-Event ...

#12078
From: Ingo Fischer
Date: Mon, 22 Feb 1999 00:00
60 lines
2686 bytes
Hi again !

many thanx ... but this I know ...

I need to know when the user is ready with changing the text, because I
have to verify and maybe change this entered value !

is there any other way to get notified of this , than using focusLost ?

Greetings

Ingo


"C. Callaway" wrote:
> 
> 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
> >

-- 
_____________________________________________________________________
      NOF-Components    : http://www.apollon.de/Components/
      Component-Support : http://www.apollon.de/support/
      Privat-Pages      : http://www.apollon.de/Privat/ 
      Developer-Pages   : http://www.apollon.de/Developer/
___  ____  __  __  ___ ______________________________________________
    / /  |/  \/  \/ _/  Homepage   : http://www.apollon.de
  _/ / ^ | ^ / ^ / _/   E-Mail     : ingo.fischer@apollon.de 
_/__/_/|_|/\_\/\_\__/________________________________________________
                         | ICQ-# : 3183043 |
                         |_________________|
Technical Details
Message-ID: <36D11571.9A32770A@apollon.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36CD730F.E553A88D@apollon.de> <7alv8l$hjo16@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2130c2c4642c5ff6
X-Google-Attributes: gid111d45,public
From: Ingo Fischer <ingo.fischer@apollon.de>
Subject: Re: JTextField ValueChanged-Event ...
Date: 1999/02/22
Message-ID: <36D11571.9A32770A@apollon.de>
X-Deja-AN: 447003137
Content-Transfer-Encoding: 7bit
References: <36CD730F.E553A88D@apollon.de> <7alv8l$hjo16@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: FZK
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing