Article View: borland.public.jbuilder.java.swing
Article #9098Typing in JComboBox doesn't cause the keyTyped event to be fired
From: Christer Brattlund
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
6 lines
962 bytes
962 bytes
I want to filter the characters that are being typed in a JComboBox before they are shown on the screen. In JTextField it works fine. I'm using the keyTyped event, which fires each time a character is being typed. I can check which character that is being typed and change it if necessary. But, if I try the same in JComboBox it just won't fire the event. Is there another way to do it?
Technical Details
Message-ID:
<8gg2u8$csb4@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,d1eaa09f97497005,start X-Google-Attributes: gid111d45,public From: "Christer Brattlund" <christer.brattlund@REMOVE_THIS.aerotechtelub.se> Subject: Typing in JComboBox doesn't cause the keyTyped event to be fired Date: 2000/05/24 Message-ID: <8gg2u8$csb4@bornews.borland.com> X-Deja-AN: 626630334 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing