Article View: borland.public.jbuilder.java.swing
Article #11671JdbTextField
From: Walter Jacobs
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
32 lines
1213 bytes
1213 bytes
Hi,
I am looking for a way to prevent the user to input more characters than are
allowed in the linked queryDataSet Column .
I am using JBuilder 2.0
For example
"Name" may have a maximum of 6 characters
I set:
jdbTextField.setAutoscrolls(false);
jdbTextField.setColumns (6);
and in the queryDataSet:
column1.setDisplayMask("aaaaaA")
Still I can enter as much as characters I want in the TextField. Even
horizontal scrolling still does happen.
When I enter 10 characters, there is no error given and the first 6
characters are put in the variable (column).
Has someone a solution and an explanation why both setAutoscroll and
setColumn does not work?
thanks for the help
Walter
I am using JBuilder 2.0
Technical Details
Message-ID:
<7f9h1n$n8n2@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3f6990afaf35f86b,start X-Google-Attributes: gid111d45,public From: "Walter Jacobs" <walter.jacobs@skynet.be> Subject: JdbTextField Date: 1999/04/17 Message-ID: <7f9h1n$n8n2@forums.borland.com> X-Deja-AN: 467467645 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3