Article View: borland.public.jbuilder.java.swing
Article #9351How can I limit a JTextPane length ?
From: Jean-Fran�ois Leroux
Date: Mon, 17 Apr 2000 00:00
Date: Mon, 17 Apr 2000 00:00
12 lines
925 bytes
925 bytes
Hi, Sorry if the question is dumb. Here it is : I have a jTextPane and would like to limit the legth of the possible entry (say 200 characters). I search the Swing Api for that but couldn't manage and find it. I tried the KeyPressed event with 'JtextPane1.getText().lentgh' but it was unsuccessfull. What's wrong ? Any idea much welcome, indeed. Many thanks. -- jfleroux@club-internet.fr
Technical Details
Message-ID:
<8dftfj$ps89@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,aa99ae09612c00a7,start X-Google-Attributes: gid111d45,public From: "Jean-Fran�ois Leroux" <jfleroux@club-internet.fr> Subject: How can I limit a JTextPane length ? Date: 2000/04/17 Message-ID: <8dftfj$ps89@bornews.borland.com> X-Deja-AN: 612398875 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing