🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTextField missing events

#10580
From: Norman H. Samuelson
Date: Fri, 27 Aug 1999 00:00
15 lines
1203 bytes
I seem to be having trouble with some missing events using JTextField.  I
want to be notified whenever ANY key is typed in the field, including
ordinary text or delete or backspace.  I get an event when the user hits the
ENTER key, and on Backspace, but not on Delete (or maybe I have those two
switched).

What I want is to know that something has changed, so I can set a flag, then
when the user types ENTER or TAB or clicks on some other field, I want to
check that his input is valid.  This seems to work well with TextField, but
not with JTextField.

I have tried a few ways of trying to catch all these keystrokes, but nothing
is working yet.  Any help would be appreciated.

- Norm -
Technical Details
Message-ID: <7q6ljs$rlr10@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,73efcbe5a6a17ec6,start
X-Google-Attributes: gid111d45,public
From: "Norman H. Samuelson" <nhs@llnl.gov>
Subject: JTextField missing events
Date: 1999/08/27
Message-ID: <7q6ljs$rlr10@forums.borland.com>
X-Deja-AN: 517959870
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing