🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Prevent further input once x # of chars entered into a JTextField

#13240
From: David Jensen
Date: Mon, 24 Aug 1998 00:00
11 lines
904 bytes
How can I prevent further input once x # of characters have been entered
into either a JTextField or a JTextArea control?  I know that the answer
lies somewhere in tweaking either control's document model, but I'm not sure
what method to call, or when.

Does anybody have any ideas, suggestions, or code samples on this one?  Any
assistance would be greatly appreciated.

Thanks in advance,
David Jensen
<jensend@txen.com>
Technical Details
Message-ID: <6rs61v$e8916@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4172dc4641d32d13,start
X-Google-Attributes: gid111d45,public
From: "David Jensen" <jensend@txen.com>
Subject: Prevent further input once x # of chars entered into a JTextField
Date: 1998/08/24
Message-ID: <6rs61v$e8916@forums.borland.com>
X-Deja-AN: 384243574
Organization: Nichols TXEN, Inc.
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0
Newsgroups: borland.public.jbuilder.java.swing