🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextField not obeying columns restriction?

#12972
From: Vasudevan Srinivasan
Date: Wed, 14 Oct 1998 00:00
12 lines
1073 bytes
Hi,
Where are you setting it ? I am using setColumns and it works properly.
JTextField will allow to enter as many characters only if its getColumns()
value is 0. so make sure it is not reset anywhere.

Adam Chace wrote:

> I have a JTextField component in which I'd like to restrict the number
> of characters that can be added to, say, 10. If I set the columns
> property to 10 or any number, the user can still enter as many
> characters as they want. This is even true of the AWT Field Control. Am
> I missing something?
Technical Details
Message-ID: <3624B9AE.43654A9E@netrisk.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3624289E.5FE9A56E@apogeeis.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,19d0a032f428dc48
X-Google-Attributes: gid111d45,public
From: Vasudevan Srinivasan <vasudevan@netrisk.com>
Subject: Re: JTextField not obeying columns restriction?
Date: 1998/10/14
Message-ID: <3624B9AE.43654A9E@netrisk.com>
X-Deja-AN: 400995682
Content-Transfer-Encoding: 7bit
References: <3624289E.5FE9A56E@apogeeis.com>
Content-Type: text/plain; charset=us-ascii
Organization: NetRisk Inc.
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing