🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Customize a JTextField

#8968
From: odyman
Date: Sat, 17 Jun 2000 00:00
11 lines
1076 bytes
Hi there

I'd like to customize a JTextfield, which dosn't allow null values. That
means a field must have an entry e.g. if  the user deletes the string and
the field contains now a null value he cannot leave. So I can't use the
PlaneDocument cass thats why i tryed to use the focusLost method. But I
didn't get it, to keep the cursor in this field if the value is null.

Thanks a lot in advance for every help!

Raphael
Technical Details
Message-ID: <8iggkn$j5f$1@bw107zhb.bluewin.ch>
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,19d9dbee97255390,start
X-Google-Attributes: gid111d45,public
From: "odyman" <odys@gmx.net>
Subject: Customize a JTextField
Date: 2000/06/17
Message-ID: <8iggkn$j5f$1@bw107zhb.bluewin.ch>
X-Deja-AN: 635788037
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Complaints-To: newsmaster@bluewin.ch
X-Trace: bw107zhb.bluewin.ch 961267159 19631 213.3.203.156 (17 Jun 2000 18:39:19 GMT)
Organization: Swisscom AG, the blue window
X-MSMail-Priority: Normal
NNTP-Posting-Date: 17 Jun 2000 18:39:19 GMT
Newsgroups: borland.public.jbuilder.java.swing