🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.gui
1 messages
1 total messages Started by Peter Meulmeester Thu, 08 Jul 1999 00:00
JTable/JScollPane Arrow key handling, PgUp/PgDn
#60
Author: Peter Meulmeester
Date: Thu, 08 Jul 1999 00:00
20 lines
1246 bytes
Hi,

I have a few JTables in a Window which must act as one whole. So no matter
which one has the "focus", I must react to navigation keys and adjust the
views of the JScrollPanes.

By using getRootPane().registerKey.....(KeyStroke.getKey....(VK_F1) ....
this all works fine. But note that I use the F1 function key here to drive
the
action. When I use the VK_LEFT or VK_ESCAPE key the keystroke
never reaches my code. I assume the the JTable/JScollPane which by chance
has the focus intercepts it.

How kan I prevent all the JTables/JScrollPanes from reacting to any key
events?

best regards,
Peter

focus intercepts it
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads