🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding a document listener to a data bound field.

#327
From: paul
Date: Mon, 15 Aug 2005 23:23
29 lines
1762 bytes
"Paul Furbacher [TeamB]" <pfurbacher@mac.com> wrote:
>Paul wrote:
>
>> I understand how to create a document object and attach it to a
>> text field and then wire in the listeners for edit events.
>> 
>> How do I do the same thing for a dbText field?  When I hook it
>> up the same way, none of the Update events get called.
>> 
>> Basically I want to update another field based on the data being
>> entered.
>
>Since the dbTextField has a default document,
>just get it (it's a method on JTextField, if
>I'm not mistaken) and register your event handler.
>
>(You shouldn't need to create and "attach"
>a document in either case you describe above.
>You would only need to do so if you were
>setting a custom document object into the
>text field.)
>
>
Thanks.  I'll give it a shot.  I orginally went with the
LostFocus event, but I'd rather do something keystroke by
keystroke.

Paul
Technical Details
Message-ID: <43012404$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42ff72f6$1@newsgroups.borland.com> <43001799$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,33ee780f4762c940
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "paul" <junkmarfia@charter.net>
Sender: "paul" <junkmarfia@charter.net>
Reply-To: "paul" <junkmarfia@charter.net>
Subject: Re: Adding a document listener to a data bound field.
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 24.247.59.251     
References: <42ff72f6$1@newsgroups.borland.com> <43001799$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43012404$1@newsgroups.borland.com>
Date: 15 Aug 2005 16:23:48 -0700
X-Trace: newsgroups.borland.com 1124148228 207.105.83.66 (15 Aug 2005 16:23:48 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail