Article View: borland.public.jbuilder.java.language
Article #17699Adding 'global' keyboard events
From: Scott Ottesen
Date: Mon, 19 Oct 1998 00:00
Date: Mon, 19 Oct 1998 00:00
36 lines
1961 bytes
1961 bytes
Hi- I've got an application that entails several different forms for data entry. My customer wants me to add keystroke support so the usual navigation keys on the keyboard work in the Java application to scroll around the data (much like Paradox) even when they jump from form to form. I've done this successfully for one form, but I'm trying to find a way to put a "global" KeyEvent listener together for all the forms that share the same data module. So far, all I see is to create KeyEvent listener's in all separate form classes instead of one single class. I've already put together a class that will work the data between all the forms if I make separate KeyEvent calls to it from each form, but all those separate calls seems like a lot of overhead for one form. Is there such a way to bind all forms to default to one separate KeyEvent listener class? Hopefully, my question isn't too confusing.... Thanks in advance! -------------------------------------------- Scott Ottesen Programmer/Analyst Utah Dept. of Comm. & Econ. Dev. 324 S. State St. Suite 500 Salt Lake City, UT 84111 Office: (801)538-8682 Fax: (801)538-8886 EMail: sottesen@dced.state.ut.us Our Site: http://www.dced.state.ut.us DCED - Information Technology Services "As the primary provider of technology support services we add value to DCED programs by implementing best practices." --------------------------------------------
Technical Details
Message-ID:
<362B5A27.D837433A@dced.state.ut.us>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,339ee7bcb7a9db48,start X-Google-Attributes: gidf74b3,public From: Scott Ottesen <sottesen@dced.state.ut.us> Subject: Adding 'global' keyboard events Date: 1998/10/19 Message-ID: <362B5A27.D837433A@dced.state.ut.us> X-Deja-AN: 402838525 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language