Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

Accelerators in one frame being activated from another

Thread view: 
Cameron McCormack - 10 Mar 2005 10:36 GMT
Hi.

I have a program that uses multiple top-level frames.  One of the frames
is the "main" one and contains a menu bar and tool bar.  The menu items
in the main frame have accelerators.  I want the actions associated with
these menu items to be activated even if the accelerator is pressed when
one of the other top-level frames has the focus.

Is there an easy way or accepted idiom to do this?

Thanks,

Cameron

Signature

 e-mail : cam (at) mcc.id.au        icq : 26955922
    web : http://mcc.id.au/           msn : cam-msn (at) aka.mcc.id.au
 office : +61399055779            jabber : heycam (at) jabber.org

Daniel Grieves - 10 Mar 2005 21:37 GMT
I haven't tried this but I think you would have to place the Action in the
ActionMap of each Frame individually, then place the Action's accelerator in
the input map for that frame.

Dan

> Hi.
>
[quoted text clipped - 9 lines]
>
> Cameron


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.