Article View: borland.public.jbuilder.java.api
Article #3245Re: deaf keyListener???
From: Paul Furbacher
Date: Fri, 27 Mar 1998 00:00
Date: Fri, 27 Mar 1998 00:00
38 lines
2118 bytes
2118 bytes
Charles Angel wrote: First, it's better if you post to only one group. > I'm having what will probably be a simple mistake on mine and jbuilders > part. I am trying to get a response from a simple keyListener object. I > had problems in my project, so I set up a simple test applet that would only > recognize a keyTyped callback. I set it up correctly and it did not > recognize any keys being pressed. So, I simplified it even more: > > 1) I started a new project. > 2) I used the wizard to create a new applet > 3) I went to the design tab, changed the inspector to events, and > double-clicked in the keyTyped event. > 4) Added the code for a simple System.out.println in the keyTyped > callback. > > This is as simple as it gets and Jbuilder put it together and it STILL DID > NOT work....I looked for information, and everything made it look as if I > was doing everything right. > I have JBuilder professional with the new patch. Shouldn't matter. Following your instructions above, I noticed that you set the keyTyped event handler for "this" and not "bevelPanel1". If you write a keyTyped event handler for "bevelPanel1" in your testbed, and make sure that "bevelPanel1" property "enabled" is set to "true", your test will work. In your actual project, make sure you have targeted the correct control, and that its "enabled" property is set to "true", and of course, as you indicate above, a key listener has been set. Paul Furbacher
Technical Details
Message-ID:
<351BA59F.71DD@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6f9h09$gd614@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,7d37b77273a75665 X-Google-Attributes: gid1089d0,public From: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: deaf keyListener??? Date: 1998/03/27 Message-ID: <351BA59F.71DD@bilbo.bio.purdue.edu> X-Deja-AN: 338325084 Content-Transfer-Encoding: 7bit References: <6f9h09$gd614@forums.borland.com> To: Charles Angel <cangel0@email.msn.com> Content-Type: text/plain; charset=us-ascii Organization: Biological Sciences, Purdue Univ. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.api