🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#323
From: Paul Furbacher [TeamB]
Date: Mon, 15 Aug 2005 04:18
36 lines
2131 bytes
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.)


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <43001799$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42ff72f6$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
Date: Mon, 15 Aug 2005 00:18:38 -0400
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Adding a document listener to a data bound field.
References: <42ff72f6$1@newsgroups.borland.com>
In-Reply-To: <42ff72f6$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.222.65
Message-ID: <43001799$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124079513 69.142.222.65 (14 Aug 2005 21:18:33 -0700)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail