Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by Pax
Sat, 10 Sep 2005 10:18
KeyEvents
Author: Pax
Date: Sat, 10 Sep 2005 10:18
Date: Sat, 10 Sep 2005 10:18
16 lines
1505 bytes
1505 bytes
I am a bit confused regarding KeyEvents. I need to listen for the user pressing a specific F-key. Is it not possible to set a key-listener for an entire frame? It seems like the event is not comming through to the frame, if the active control has any kind of key-listener (like a TableFrame). I am used to the events bubbeling up from a compunent to its parent until it hits the container in Delphi. Is this different in Java? In this project I am compiling to a Java application (JAR executable). I am using JBuilder2005, but I suppose that does not make any difference. -- Peder Sk๏ฟฝnning PAX Informatik
Re: KeyEvents
Author: Vander
Date: Wed, 12 Oct 2005 08:55
Date: Wed, 12 Oct 2005 08:55
20 lines
1911 bytes
1911 bytes
I had this kind of considerations before. As a general rule (which may have exemptions), nothing in Java Swing happens in a systematic way and all seems to depend on arcane handling knowledge. Unfortunately! - We may guess that time restraints have played a roll in design here. - V. Pax wrote: > I am a bit confused regarding KeyEvents. I need to listen for the user > pressing a specific F-key. Is it not possible to set a key-listener for an > entire frame? It seems like the event is not comming through to the frame, > if the active control has any kind of key-listener (like a TableFrame). > > I am used to the events bubbeling up from a compunent to its parent until it > hits the container in Delphi. Is this different in Java? > > In this project I am compiling to a Java application (JAR executable). > > I am using JBuilder2005, but I suppose that does not make any difference. >
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