🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

To Borland: Extending DBPlainDocument

#9740
From: bjm989
Date: Thu, 10 Feb 2000 00:00
20 lines
1347 bytes
Borland,
I've extended DBPlainDocument to make it convert characters to
uppercase by overriding the inputString method. Then, I extend a
JdbTextField, and in the constructor I say:
 getDataBinder.setDocument(myNew Extended DBPlainDocument);

Later in the code I set the dataSet and columnName of this component.

When I run my program, the component no longer seems to be data aware.
It does however convert characters to upper case. My component does not
get updated when the dataset changes, and changes to my component do
not affect the data set. Is there some reason why my databinder loses
it dataSet and columnName settings when I'm doing this?

THanks,
Ben


Sent via Deja.com http://www.deja.com/
Before you buy.
Technical Details
Message-ID: <87v9cc$tj3$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b80e2f6ff3b1be66,start
X-Google-Attributes: gid111d45,public
From: bjm989@my-deja.com
Subject: To Borland: Extending DBPlainDocument
Date: 2000/02/10
Message-ID: <87v9cc$tj3$1@nnrp1.deja.com>
X-Deja-AN: 584179985
X-Http-Proxy: 1.0 x29.deja.com:80 (Squid/1.1.22) for client 198.133.169.33
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Thu Feb 10 21:08:32 2000 GMT
X-MyDeja-Info: XMYDJUIDbjm989
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)