🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BEAN for JTextField

#9019
From: Herb Wolfe
Date: Thu, 01 Jun 2000 00:00
13 lines
986 bytes
odyman <odys@gmx.net> wrote:
: Hi there,
: can anybody help me? I'd like to customize JTextFields.

: E.g. to set the max length or only to allow numbers or specific characters.

: Are there any good beans?

A JTextField is a bean, and the length, at least, can easily be set
already. To allow only certain characters would simply require the addition
of a KeyListener.

~herb
Technical Details
Message-ID: <%qzZ4.164$ni3.706@newsfeed.slurp.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8h5snu$q5b$1@bw107zhb.bluewin.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e6d023c2321bba7e,start
X-Google-Attributes: gid111d45,public
From: Herb Wolfe <hwolfe@inetnebr.com>
Subject: Re: BEAN for JTextField
Date: 2000/06/01
Message-ID: <%qzZ4.164$ni3.706@newsfeed.slurp.net>
X-Deja-AN: 630055552
References: <8h5snu$q5b$1@bw107zhb.bluewin.ch>
X-Trace: newsfeed.slurp.net 959890235 199.184.119.1 (Thu, 01 Jun 2000 15:10:35 CDT)
User-Agent: tin/1.4.3-20000502 ("Marian") (UNIX) (SunOS/5.6 (sun4u))
NNTP-Posting-Date: Thu, 01 Jun 2000 15:10:35 CDT
Newsgroups: borland.public.jbuilder.java.swing