🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTextField KeyEvent

#10544
From: Ernesto Bascón Pantoja
Date: Mon, 06 Sep 1999 00:00
17 lines
954 bytes
Hi:

I have the following problem:

I have a JTextField and I have a set of allowed characters;
when I press a key and it's allowed, the character must be showed.

I tried to use the consume() method of KeyEvent, but it just works
with AWT (TextField) and it's ignored by my JTextField.

Is there a known bug about this or am I doing something wrong?

Please, help me

Thanx in advanx

Ernesto Basc�n Pantoja
Technical Details
Message-ID: <37D3EB75.DC59C896@estudiantes.ucbcba.edu.bo>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,d8aac844285e8785,start
X-Google-Attributes: gid111d45,public
From: Ernesto Bascón Pantoja  <bascone@estudiantes.ucbcba.edu.bo>
Subject: JTextField KeyEvent
Date: 1999/09/06
Message-ID: <37D3EB75.DC59C896@estudiantes.ucbcba.edu.bo>
X-Deja-AN: 521731062
Content-Transfer-Encoding: 8bit
Organization: UCB
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing