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 / August 2003

Tip: Looking for answers? Try searching our database.

ctrl-tab shift-ctrl-tab in MDI application

Thread view: 
SPC - 29 Aug 2003 13:58 GMT
I have an MDI app using JInternalFrame and JDesktopPane, and I'd like
to use ctl-tab/shift-ctl-tab (on Windows with Win l&f) to move between
the internal frames instead of the default ctl-f6. But I have been
unable to intercept the ctrl-tab which seems to have been snapped up
somewhere in the swing framework.

I'd originally assumed I'd have to do something with input maps and
action maps, but no matter what I attach them to, I don't manage to
pick up the ctrl-tab keypresses.

Has anyone else tried this and got it to work, either using action
maps or processKeyEvent?

Regards

Steve
Bent C Dalager - 29 Aug 2003 14:25 GMT
>Has anyone else tried this and got it to work, either using action
>maps or processKeyEvent?

Those keys have probably been pilfered by the focus management system.
There may be a way to convince the focus manager to let go of them,
but I can't remember.

If I'm right, you should keep in mind that if you redefine them, you
may ruin keyboard navigation in your app.

Cheers
    Bent D
Signature

Bent Dalager - bcd@pvv.org - http://www.pvv.org/~bcd
                                   powered by emacs

Alan Moore - 30 Aug 2003 06:34 GMT
>>Has anyone else tried this and got it to work, either using action
>>maps or processKeyEvent?
>
>Those keys have probably been pilfered by the focus management system.
>There may be a way to convince the focus manager to let go of them,
>but I can't remember.

Yes, there is.  Take a look a the setFocusTraversalKeys(int, Set)
method in java.awt.Container.


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.