Article View: borland.public.jbuilder.java.language
Article #18053jdk 1.0.2 control focus questions
From: Pat Cassidy
Date: Wed, 26 Aug 1998 00:00
Date: Wed, 26 Aug 1998 00:00
27 lines
1570 bytes
1570 bytes
Hi folks, I'm in day 2 of learning Java for a project I'm doing gratis for our local Public Radio Station. (Hopefully they will get more than they are paying for.) I've already got a preliminary working version of the project, but have run into the first of many inevitable snafus. I can't get focus to change between data input controls using the keyboard. The only discussion about this is in a FAQ somewhere that indicates that focus shifting with TAB is handled automatically by JDK 1.1, but for JDK 1.0 you have to muck around with event keyDown. I seem to be able catch the event ok, but calling nextFocus() has no effect that I can see; and it still leaves open, even if that did work, how to go to the previous control, since there doesn't seem to be a "prevFocus()". I suppose the reason the app does shift focus on IE 4.0 and not on IE 3.02 is that only IE 4 implements the updated Java engine; is that correct? If I do figure out how to make Netscape 3 and IE 3 change focus, will I have to do some version testing so I don't break IE 4? Thanks for any hints, Pat Cassidy [patcassidy@supportnetwork.com]
Technical Details
Message-ID:
<MPG.104e3e88f23fb729896ab@forums.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: f74b3,a9d6a2e60c771c6c,start X-Google-Attributes: gidf74b3,public From: pcassidy@supportnetwork.com (Pat Cassidy) Subject: jdk 1.0.2 control focus questions Date: 1998/08/26 Message-ID: <MPG.104e3e88f23fb729896ab@forums.borland.com> X-Deja-AN: 385038053 Organization: The Support Network Newsgroups: borland.public.jbuilder.java.language