Keyboard shortcuts in JTabbedPane don't work in BorderLayout

I'm mystified by a problem that doesn't seem to make any sense. I have a JTabbedPane with mnemonics, that used to work well before. But since I've shuffled components around a bit and put the JTabbedPane in the BorderLayout.CENTER of a JPanel, the keyboard shortcuts no longer work.
The appropriate letters are underlined, but the Alt+letter sequence no longer switched tabs. Other components (JButtons) with keyboard shortcuts in the same JPanel, but in the BorderLayout.SOUTH or elsewhere, work as expected.
It sounds like a bug to me, but is there perhaps a workaround?
Thanks,
- Peter

I keep replying to my own posts...
I figured out that the tabs start working once a component in them (say, a JTextField) receives keyboard focus. It does sound a bit suspicious to me, but I can live with it.
Unfortunately, setting the focus programmatically doesn't seem to work: requestFocus() or requestFocusInWindow() on the first JTestBox simply don't work.
- Peter

Similar Messages

  • Keyboard shortcuts in application don't work

    Wondering if any one can help me with this one.
    I'm finding that only some of the keyboard shortcuts in Final Cut Pro are working for me. For example "Command/F12" is supposed to give me full-screen view. Instead "F12" continues to function as a sound volume increase button. I've taken this problem to the FCP forum but the best someone there could say was that there seems to be a conflict between my OS and FCP. I've gone to "Systems Preferences/keyboard" and the most I could do there was make sure that Final Cut was a listed application. I see no "yellow triangles" there.
    I hope someone can clue me in here. If not my mouse is going to get exhausted flying all over the FC page.
    Thanks.
    john

    Thanks.
    "fn+f12" on it's own didn't help so I went to "System Preference/keyboard" and checked the "use F keys as standard" box as you suggested. Now when I hit "command+F12" (not "commandfnf12) I get the proper FCP response.
    Hope this will also have fixed the other FCP shortcuts that were not working.
    John

  • Every day, my keyboard and track pad don't work, so I have to shut my computer off and start it back up. It does this multiple times a day. What can I do to make it stop doing this?

    Every day, my keyboard and track pad don't work, so I have to shut my computer off and start it back up. It does this multiple times a day. What can I do to make it stop doing this?

    Try resetting your SMC and PRAM.
    Resetting the System Management Controller  >>
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Magic mouse, keyboard and track pad don´t work from sleep!

    After coming back from sleep, the magic mouse, keyboard and track pad don´t work. I´ve tried everything and when this happens I have to restart may Imac. Help!!!

    Hello jhspies,
    After reviewing your post, it sounds like after you updated there are a few things having trouble. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    OS X Yosemite: If keys on your keyboard don’t work
    Intel-based Mac notebooks: Troubleshooting unresponsive trackpad issues - Apple Support
    USB and FireWire Quick Assist - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Keyboard and Mouse pad don't work.

    Can anyone help me? I figured I should come here before bringing it to a shop.
    I have upgarded my ram from 2gigs to 4gigs with Crucial ram.
    Though regardless if I have the new ram or old ram in, my keyboard and mouse pad don't work. There were occasions before when the keyboard would lock up for a short while, but I have no idea what's causing this.
    My only thought would be that sometimes my computer would get unusually hot, but i just turn it off when that happens.
    Everything else works fine, the USB ports work with keyboards and mouse's, the power chord works fine, there seems nothing wrong with the battery or display.
    Thanks you for any help.

    Welcome to Apple Discussions!
    Has your keyboard and mouse quit working altogether or just when the computer is hot? And do I understand that an external keyboard and mouse will work with no problems?
    And I am wondering about your computer running unusually hot. Are your fans operating properly? You might want to run the extended version of the Apple Hardware test to be sure that the fans and thermal sensors are working properly. If they are not, you will get one or more error codes.
    Another thing to do to check when your Mac is unusually hot is the Activity Monitor. Select "All Processes" at the top right and check for any process running that should not be which is using lots of CPU.
    I don't know if the keyboard problem is related to the heat problem or not, but I would want to know what is causing the heat problem too. Over time, excessive heat can cause damage to the logic board. It could also conceivably damage the ribbon cable which connects the keyboard and I would guess that the trackpad could also be affected. So it is important to see what is going on here. If you have been experiencing excessive heat on a regular basis, this might be the underlying cause of your keyboard and trackpad problems. If so, the heat problem will have to be fixed or the other problem will recur over time.
    Try the AHT and post back with any results. Also, use iStatPro to check on your fans and make sure both are running at roughly equal speeds and that they run faster when the computer gets hot.
    Good luck!

  • Keyboard shortcuts for text selection not working in Flash CC

    In the new Code Editor in Flash CC running on Mac OS X, most standard Keyboard Shortcuts for traversing through the text work as expected (as the Operating System works globally) but there is one that doesn't and it's I think the most important one.
    Hitting "OPTION + SHIFT + [right or left arrow keys]" to select words doesn't work. Hitting "OPTION + [right or left arrow keys]" works as expected, moving the cursor to the next word or break point, but adding shift doesn't do the selection.
    I don't understand why this changed since it's a basic OS global shortcuts, and every other program behaves the way it should. Flash CS6 running on the same system behaves fine, but Flash CC doesn't. If you have ever written code, you know that any second that a programmers hand doesn't have to leave the keyboard to search for the mouse is invaluable, and this has forced me to stop using Flash CC and use Flash CS6 to edit my Action Script classes becuase it's unusable otherwise.
    These shortcuts are also not listed in the keyboard shortcuts for the program, so I can't change the default behavior. Does anybody know if there's a way to set it back to the way it was before, or just disable special text shortcuts so that selecting text behaves like any other application in the operating system?
    System Configuration:
    Flash CC
    Mac OSX 10.8.5

    Amy~ Yep the lasso tool was what I verified with another user. 'L' seems to be bound indefinitely to loop through different types of lasso tools and it was annoying them because they just wanted L to be the regular freehand lasso. I removed 'L' from being an option on the polygon lasso and even set it explicitly to SHIFT+L as well as set the lasso tool to a completely different keyboard combo. 'L' still cycled through lassos haha. It needs some fixes.
    fertolg~ At least you have a workaround for now. I'd go nuts if I couldn't use keyboard text selection writing code, oy! You're welcome and if you're all set please mark correct so we can filter unanswered. Good luck!

  • Why won't the keyboard shortcuts in Illustrator CC 2014 work in Mac OS 10.9.4?

    I have a Mac Pro (Late 2013) with these specs:
    Processor  3 GHz 8-Core Intel Xeon E5
    Memory  64 GB 1867 MHz DDR3 ECC
    Graphics  AMD FirePro D700 6144
    Software  OS X 10.9.4 (13E28)
    I downloaded the latest Adobe software today so not sure what the issue is.

    I have checked the system prefs and there don't seem to be any corresponding keyboard shortcuts to interfere with them. When I choose the "Use all F1, F2, etc. keys as standard function keys" on the keyboard prefs pane (see below), then the Illustrator shortcuts work, but it disables the basic functions in the Finder and other programs. There is some conflict but I can't figure out the right settings for both Illustrator and the Mac OS to work properly.

  • Keyboard shortcuts in CS4 won't work! Please help!

    In the last month I have lost all of my keyboard shortcuts in my CS4 program.  I was using Windows Vista Professional - and installed CS4 in August.  Everything was working great.  Then last month, all of the shortcuts disappeared.  I uninstalled/then reinstalled CS4 - still nothing.  Have done that several times, and looked on the forums for similar issues, in the Technotes - nothing.  Yesterday my office upgraded my system to Windows 7.  I am on a new HP Elitebook - also purchased in August, so my system can handle the program with ease.
    Anyway, I had the IT guy do a 'clean install' per most of the chatter online, so i went to install the program and the install came up with 'errors' first was that Adobe 9 was not installed, nor was Photoshop.  When i opened up illustrator - poof - no keyboard shortcuts again.  Please if anyone knows of something that I could try, I would really appreciate it.  This is seriously making me behind in projects and am ready to throw my new computer out the gigantic window that is in front of my desk.
    Oh, since this - I updated my graphics driver (per suggestion for Photoshop), unistalled CS4 - AGAIN - and am in the process of reinstalling.  But I am pretty sure that the shortcuts will be missing.
    Help!!

    These are the errors that I keep getting from the 'Get More Information' link after install.
    Adobe Acrobat 9 Professional (At install, older versions get upgraded. A l'installation, les versions plus anciennes sont mises à niveau. Bei der Instalation werden ältere Versionen aktualisiert.)
    Error:
    Error 2.
    Adobe Photoshop CS4 (64 Bit)
    Error:
    Error 1603. Error 1311.Source file not found: \\CGENG\Tammy$\Adobe CS4\payloads\AdobePhotoshop11-Core_x64\AdobePhotoshop11-Core_x641.cab.  Verify that the file exists and that you can access it.
    Adobe Fonts All x64
    Error:
    Error 1603. Error 1311.Source file not found: \\CGENG\Tammy$\Adobe CS4\payloads\AdobeFontsAllx64\AdobeFontsAllx641.cab.  Verify that the file exists and that you can access it.
    Adobe Illustrator CS4 LangPack (en_US)
    Error:
    Error 2.
    Adobe InDesign CS4 Application Language Files (en_US)
    Error:
    Error 2.
    Adobe InDesign CS4 Common Language Files (en_US)
    Error:
    Error 2.
    Adobe Photoshop CS4 English Language Pack
    Error:
    Error 2.
    LangPack (English) for DeviceCentral
    Error:
    Error 2.

  • Keyboard shortcuts from Tiger/Leopard not working in Snow Leopard

    OK, here are two examples: In Mail.app I used to press CMD-option-J to invoke the Delete Junk Mail dialog. Now it doesn't work if I have switched to the English US keyboard input method; any other selection of keyboard input works (I use English US, Greek, Unicode Hex Input and another greek one from vodkatini.gr called "Ελληνικά").
    Also, within Graphisoft ArchiCAD 13 I used option-O (that's the letter 'O') to access one command (it's Document>Layout Book>Open assigned Master Layout). This worked up until I switched to Snow Leopard. Now it only works if I have enabled the Unicode Hex Input keyboard input method.
    Anyone cares to shed some light? Has something changed in the way keystrokes are interpreted in the new OS?
    FWIW, when I go to ArchiCAD's keyboard shortcuts preferences dialog (it's where the user can customize them to their liking), for the first time ever I notice the following: if I try to assign option-O as the shortcut for a command, the field which should confirm visually what I have pressed (and which up until now used to reflect my keystroke by displaying "Option-O" so I can be sure what I am trying to assign to the specific command) now shows "ø". Now, at first it looks like Snow Leopard is interpreting the keystroke as the special 'o' with the diagonal (sorry, don't know what it's called); it's puzzling, though, that it doesn't behave the same way when I press option-E for the keystroke (which should, by analogy, produce the character 'é') and so on.
    Thanks for any tips, people.

    None of this works for me because, as I'm using SpamSieve, Mail's inbuilt Junk Mail filtering is turned off and I don't have a 'Junk' folder. What is puzzling is that I certainly used this shortcut before (I think to empty the Trash after deleting everything from the 'Spam' folder - which moved it to the Trash) which seems a bit odd. After the upgrade I found this didn't work. Adding a Greek keyboard made no difference.
    Perhaps someone who isn't using SpamSieve can try this out.

  • Keyboard shortcuts in flash cs6 not working correctly

    i bought 3 licences of creative suite cs6, and in every one of them flash cs6 keyboard shortcuts wont work correctly.
    specifcly the tools shortcuts such as space bar for hand tool, v' for arrow key and more.
    i need to restart flash for them to work again. this happened on 3 of my studio's computers!
    please help
    i'm on a pc machine, intel i7, 2.8 GH
    windows 7, 64 bit, 16gb ram,

    Mohanaraj CS schrieb:
    Hi torben123,
    This issue has been resolved in Flash CC, please take a look at it and let us know if you still face any issues.
    Thanks!
    Mohan
    Mohanaraj CS, I'm still using Flash Pro CS6 on my MacBook Pro and the shortcuts don't all work correctly because Flash (German version with German language keyboard setting in OSX) seems to use an US keyboard setting only for the shortcuts internally (if I type into fields, I've got my German layout, but if I want to set up a shortcut like cmd + + for zoom in oder cmd + - for zoom out, it shows cmd + ] and cmd + / instead).
    And the "fix" to an obvious bug (as you said by yourself) now is TO BUY CC??
    Come on, Adobe Staff, is that how you treat your customers?
    A little -known- bug but you have to get (and buy) the cloud thing, if you want it fixed... did you get the bug into the code THEREFORE in the last update?
    I really love the Adobe software but this is the baddest joke since a looong time, Mohanaraj CS.

  • Keyboard shortcut for Copies has never worked in print dialog

    I don't know if this is the right place to report a bug, but it has always irritated me that the keyboard shortcut ALT-C to move the focus to the Copies field has never worked in the Adobe Reader print dialog.  It should work as the underscore exists in "Copies:"  I use the shortcut all the time in Office whenever i want to print more than one copy.  It would be nice if this would work in Adobe Reader also.  It should work as the underscore exists in "Copies:"

    To file a bug report go to https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Keyboard shortcut for display is not working

    I have an external keyboard because my internal one is damaged, When I set up the keyboard shortcut settings when I first got the keyboard I made sure the display short cuts are set, it worked, though when I changed the short cut values to be something else because it conflicted with a program I am using it stopped working, When I set the shortcut keys back to what I first put them when I got the external keyboard it still did not work.
    I use Macbook air 13-inch, Mid 2011, Software  OS X 10.9.4
    My mac is up to date on this posts time.

    Sorry, I don't have an answer, and I am not a Mac user so not familiar with their problems, but ISTR another Mac use posting with the same issue recently.  Are you using Mavericks?  There are apparently a number of bug issues that the PS team has made Apple aware of.
    But in case that is not the issue here, is this with the Background layer?  Shift F5 works OK for me on a BG layer, but you might find the Del key works better for you.
    Not strictly related, but for other CC users reading this thread, Trevor Morris has released a CC version of his famous Photoshop Keyboard Shortcuts PDF, as well as an Extension that applies a number of custom shortcuts.  I didn't think there were any going spare!   I am also a big fan of the Michael Ninnis Power Shortcuts video from last year's Adobe Max, and there are bound to be conflicts
    Message was edited by: Trevor Dennis  (I forgot the Trevor Morris link)

  • Keyboard (hardware & onscreen) suddenly don't work anymore - only factory reset helps

    I have my Passport for about a month now and just experienced the following problem for the second time: all of sudden the keyboard (both hardware and onscreen) don't work anymore. I cannot enter my device password anymore, I can focus the password dialog, but then simply nothing happens when I press keys.
    After a restart of the Passport it asks me for my SIM card PIN. Again, I can focus the text field in the dialog, and I can touch numbers of the onscreen keyboard, and the number keys light up, but no input gets to the dialog.
    There is simply no way to activate the device anymore. I can do a backup using BlackBerry Link, and I can access the device with BlackBerry Blend - but the device itself is useless. No kind of restart or reset helps. The only solution is to do a factory reset, after that the device works fine again - for some time.
    Once this happened while I was on the road, without doing anything with the device. The second time it happened when I was trying to deploy a self written app using the Momentics IDE.
    Additional information:
    - development mode is on (needed since I want to develop Apps for BB10)
    - Snap is installed
    - a handful of Android apps from Google Play store are installed
    - two BlackBerry World apps are installed (whatsapp and HUB++LED)
    Did anyone experienced similar issues or has an idea what might cause this problem?
    Thanks!

    Quote from: Svenomous on 25-September-06, 23:08:26
    Have you tried using a usb keyboard/mouse?
    I don't use any usb, only use PS2. Maybe it is possible to use some sort of a PS2 to usb converter, but I would rather like the PS2 to work.

  • Keyboard shortcuts in Photo CS6 not working correctly.

    Keyboard shortcuts are working sporadically. For instance, when using select all, copy, paste shortcuts to copy from one image to another in a different tab it can take 2 presses of the keyboard to get them to work. This also makes actions unuseable.
    Using MacPro 2.66 Nehalem 8 core, OS 10.6.8, 32GB RAM, ATI Radeon HD 4870
    Have tried:
    Adjusting Performance in preferences -currently 25062 memory usage, history states 20, cache levels8, cache level 1024, use graphics processor ticked. Have changed all of these settings with no effect on problem.
    Closed all other programs(including all browsers).
    Removed any plug-ins.
    Closed flash panels namely mini bridge.
    Having to revert to an older version of Photoshop at the moment as dodgy Keyboard shortcuts make CS6 unuseable. Also have a problem with Camera Raw which I have raised in another Discussion that makes it unuseable also.
    Suggestions welcomed.

    Here's my Activity:
    1378
    Activity Monitor
    macuser
    1.6
    2
    20.9 MB
    Intel (64 bit)
    1161
    AdobeCrashDaemon
    macuser
    0.0
    1
    4.4 MB
    Intel (64 bit)
    146
    AirPort Base Station Agent
    macuser
    0.0
    3
    6.3 MB
    Intel (64 bit)
    1136
    CS6ServiceManager
    macuser
    0.0
    6
    3.9 MB
    Intel
    1018
    diskimages-helper
    macuser
    0.0
    3
    9.8 MB
    Intel (64 bit)
    111
    Dock
    macuser
    0.4
    3
    28.0 MB
    Intel (64 bit)
    113
    Finder
    macuser
    0.0
    6
    61.2 MB
    Intel (64 bit)
    127
    fontd
    macuser
    0.0
    2
    12.6 MB
    Intel (64 bit)
    147
    IJEPWAgent
    macuser
    0.0
    2
    1.3 MB
    Intel
    176
    Image Capture Extension
    macuser
    0.0
    3
    11.2 MB
    Intel (64 bit)
    155
    iTunes Helper
    macuser
    0.0
    3
    3.9 MB
    Intel (64 bit)
    107
    launchd
    macuser
    0.0
    2
    1.4 MB
    Intel (64 bit)
    30
    loginwindow
    macuser
    0.0
    2
    11.2 MB
    Intel (64 bit)
    1301
    MassStorageCamera
    macuser
    0.0
    3
    6.8 MB
    Intel (64 bit)
    1369
    mdworker
    macuser
    0.0
    3
    17.4 MB
    Intel (64 bit)
    134
    pboard
    macuser
    0.0
    1
    984 KB
    Intel (64 bit)
    1159
    Photoshop
    macuser
    0.8
    78
    1.71 GB
    Intel (64 bit)
    1373
    Quick Look Helper
    macuser
    0.0
    6
    5.9 MB
    Intel (64 bit)
    152
    SophosUIServer
    macuser
    0.0
    5
    13.7 MB
    Intel
    1120
    SwitchBoard
    macuser
    0.0
    4
    2.6 MB
    Intel
    112
    SystemUIServer
    macuser
    0.0
    3
    12.8 MB
    Intel (64 bit)
    139
    UserEventAgent
    macuser
    0.0
    3
    7.0 MB
    Intel (64 bit)

  • Defining keyboard shortcut in Photoshop CC not working (OSX)

    Hi,
    I face a strange problem when trying to redefine a keyboard shortcut on Photoshop CC or CS6 on an IMac 2013 running the latest version od OSX.
    a --> A
    ù --> Ù
    Every time I type a key it's the uppercase version of the letter that is taken.
    If I go for example on Text tool to put some text in images it's ok.
    It only happens in the dialog box to define keyboard shortcut.
    Note that same version od CC and CS6 works correctly on my macbook Air running also the latest OSX.
    Any idea where the problem could come or been solved ?

    Turn off the ALL CAPS option in the character palette that you forgot about turning on...

Maybe you are looking for

  • When I import movies to imovies from a camcorder, the sound does not import. IPhone movies import completely.

    I'm trying to import movies from a Canon camcorder into iMovie. The picture imports ok but there is no sound. I've tried using camera connected as well as card reader. The card is a 16gb SD card. iPhone movies import ok with sound as well as video.

  • How to enable ToDo in Mail

    I have two mail accounts, one POP account, and MobileMe. The ToDo feature appears to be disabled on the POP account. The commands are gray on that account. However, when I choose an email from MobileMe I can select text and create a new ToDo item. I

  • Why my use iPhone cannot connect to home wifi in China?

    I have just visited China, city of nanjing. Was staying at friends house, home has a wifi router connected to China Telecom modem. No matter how i tried, i just could not connect to the internet.Anybody got solutions to it?Tried using a iphone 4 and

  • Download Photoshop Elements 5?

    Years ago I registered a copy of Photoshop Elements 5. I've since gotten a new computer and I forgot that I owned the software. I no longer have the disc it came on, but since I still have a serial number that I can see on my Adobe account, is there

  • Early contract cancellation charges can anyone tel...

    I am moving abroad and need to cancel some of my BT contract. The 12 month contract for unlimited Infinity 1 £10/month and line rental with evening weekend calls started 22nd December. I will need to end contract around 1st September. I paid 12 month