🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Max length for JTextField?

#12142
From: Mike Michalowicz
Date: Wed, 17 Feb 1999 00:00
23 lines
1183 bytes
Pretty complicated for something that can be done with TextField.setLength(X)
don't you think??
(IMHO)

Mike

Matt Krevs wrote:

> Look at DocumentListener
>
> Check out the following link
>
> http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html
>
> Jason Burton wrote in message <78qlod$53q6@forums.borland.com>...
> >How can I limit the number of characters that can be entered into a
> >JTextField component?  Is there an easy method for this, or do I have to do
> >some sort of key listener?
> >
> >Thanks,
> >Jason Burton
> >
> >
Technical Details
Message-ID: <36CB23B1.F2921D4E@hekimian.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <78qlod$53q6@forums.borland.com> <78qmhq$53u5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6cae956220da4ed9
X-Google-Attributes: gid111d45,public
From: Mike Michalowicz <mmichalowicz@hekimian.com>
Subject: Re: Max length for JTextField?
Date: 1999/02/17
Message-ID: <36CB23B1.F2921D4E@hekimian.com>
X-Deja-AN: 445439200
Content-Transfer-Encoding: 7bit
References: <78qlod$53q6@forums.borland.com> <78qmhq$53u5@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing