Article View: borland.public.jbuilder.java.swing
Article #385Re: KeyEvents
From: 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. >
Technical Details
Message-ID:
<434cceb9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4322b2cf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,24303e9164ec4a7d X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 12 Oct 2005 10:55:38 +0200 From: Vander <874505@gmx.de> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: KeyEvents References: <4322b2cf$1@newsgroups.borland.com> In-Reply-To: <4322b2cf$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.152.207.141 Message-ID: <434cceb9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129107129 84.152.207.141 (12 Oct 2005 01:52:09 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail