users
[Top] [All Lists]

KeyStroke and JScrollPane

To: users@xxxxxxxxxx
Subject: KeyStroke and JScrollPane
From: James Hurt <JimHurt@xxxxxxxx>
Date: Mon, 20 Dec 2004 20:38:20 -0500
Delivered-to: mailing list users@cinjug.org
In-reply-to: <E1B9Rxm-0005l9-Iz@t7.cwihosting.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <E1B9Rxm-0005l9-Iz@t7.cwihosting.com>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
I have need to use different key strokes than the default to scroll around a
JScrollPane.  That is, I need to use certain keys such as Page_Up to mean
something different than scroll the JScrollPane one block up.  My problem is
that JScrollPane is capturing the Page_Up key strokes and not passing them on to
my code.

Q1: How do I change the scrolling key settings for JScrollPane from the default
to something I specify?

Q2: What is the difference between an InputMap and an ActionMap?  When do I use
one and not the other?

Jim Hurt




<Prev in Thread] Current Thread [Next in Thread>