Article View: borland.public.jbuilder.java.swing
Article #7516Re: How to receive JComboBox's KeyListener event?
From: Betty
Date: Tue, 16 Jan 2001 02:23
Date: Tue, 16 Jan 2001 02:23
30 lines
1949 bytes
1949 bytes
I have tried to use keyTyped, keyPressed, keyReleased. It doesn't work. Betty Torsten Welches wrote: > Betty, > > I missed that you are interested in special keys, sorry. > keyTyped sees only Unicode character types. > Please use keyPressed instead! > > Good luck, > Torsten > > Betty <cutepang@net.polyu.edu.hk> wrote: > >Thanks For your message! > >However, it doesn't work. > >I copy your sample code and do it. > >but it can't print out anything. > >I use the mouse to point to the JcomboBox > >and make it focus. Then, I type any key in the > >keyboard. However, nothing is printed on the screen. > >I am using JDK1.3. I'm sure that JCombo recieve the > >key event. Coz' I have typed the down and up arrow. > >The JcomboBox can show the popup list. > >Any suggestions? Thanks! > > > >Betty
Technical Details
Message-ID:
<3A63B0A1.97C03899@net.polyu.edu.hk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!skynet.be!195.206.66.162.MISMATCH!Amsterdam.Infonet!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!202.77.183.3References:
<3A5D83FA.665F9A05@net.polyu.edu.hk> <3a5da838$1_1@dnews> <3A5E70FB.532CA8CD@net.polyu.edu.hk> <3a5ea4b4$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a8659c08c1f7aefa X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-15 18:32:05 PST Message-ID: <3A63B0A1.97C03899@net.polyu.edu.hk> Date: Tue, 16 Jan 2001 10:23:29 +0800 From: Betty <cutepang@net.polyu.edu.hk> X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: How to receive JComboBox's KeyListener event? References: <3A5D83FA.665F9A05@net.polyu.edu.hk> <3a5da838$1_1@dnews> <3A5E70FB.532CA8CD@net.polyu.edu.hk> <3a5ea4b4$1_2@dnews> Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.77.183.3 X-Trace: 15 Jan 2001 18:23:40 -0800, 202.77.183.3 Lines: 31 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!skynet.be!195.206.66.162.MISMATCH!Amsterdam.Infonet!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!202.77.183.3