Article View: borland.public.jbuilder.java.swing
Article #1091Re: how to set cancel button and help(F1)?
From: Roel
Date: Wed, 24 Mar 2004 14:08
Date: Wed, 24 Mar 2004 14:08
22 lines
1637 bytes
1637 bytes
Hi, You have to use keylisteners. A good resource is: http://www.rz.fhtw-berlin.de/javakurs/magelang/awt/sec03-events.html Regards, Roel jinxiaojin wrote: > As you know,it is simply to set up a default key(reacting to Enter being pressed) and a cancel key (reacting to ESC being pressed))in dephi. > I know how to set up default button in java,But I do not know how to set up a cancel button and help button(reacting to F1 being pressed) . > I found Jbuilder's UI can do it. > Somebody can tell me how to do it? > thanks. >
Technical Details
Message-ID:
<40619668$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4060dbec$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c8b09f43a01db61d X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-24 06:10:31 PST Date: Wed, 24 Mar 2004 15:08:40 +0100 From: Roel <rgillesen_remove@yahoo.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: how to set cancel button and help(F1)? References: <4060dbec$1@newsgroups.borland.com> In-Reply-To: <4060dbec$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 143.186.191.78 Message-ID: <40619668$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080137320 143.186.191.78 (24 Mar 2004 06:08:40 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail