πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextField

#10387
From: Tor Iver Wilhelmsen
Date: Tue, 21 Sep 1999 00:00
10 lines
913 bytes
"Michel PοΏ½rez" <mperez@eurobanco.com> writes:

> 1)Does anyone knows how to change the text to upper case in a JTextField ?
> 2)Does anyone knows how to set the JTextField to accept (2) character or (n)
> charaters ? I was trying using
>    setColumn method, but doesn't work.

Make Document classes which do what you want, and setDocument() on the
JTextField to the document. You will want to extend PlainDocument and
override insertString to do what you want.
Technical Details
Message-ID: <ulna0hie8.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7s61lo$bng2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,4bf71eb6674d93cb
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: JTextField
Date: 1999/09/21
Message-ID: <ulna0hie8.fsf@sds.no>
X-Deja-AN: 527728716
Sender: towi@SDSA1761
References: <7s61lo$bng2@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing