πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextField

#10398
From: Steve Horsley
Date: Wed, 22 Sep 1999 00:00
18 lines
941 bytes

"Michel PοΏ½rez" wrote:
> 
> Hello !
> 
> 1)Does anyone knows how to change the text to upper case in a JTextField ?

From memory, try something like:
    textField.setText(textField.getText().toUpperCase());

> 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.

No. Sorry.

Steve.
Technical Details
Message-ID: <37E8950E.30C964A4@cwcom.co.uk>
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: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: JTextField
Date: 1999/09/22
Message-ID: <37E8950E.30C964A4@cwcom.co.uk>
X-Deja-AN: 528154898
Content-Transfer-Encoding: 8bit
References: <7s61lo$bng2@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: Cable & Wireless Communications
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing