Stop "Ctrl-Page Down" in a JList but propergate the event

Hi all. I have a JList inside a tabbed pane.
On my tabbed pane I have hot keys such that Ctrl-Page Up and Ctrl-Page Down change the tab. This works fine except when a JList has focus in the tab.
When I press Ctrl-Page Up or Page Down on the JList I don't want it do anything and I would like the tab to change as expected.
If I add this to my JList:
list.getInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, InputEvent.CTRL_DOWN_MASK), "none")it stops my JList from reacting to the Ctrl-Page Down but it doesn't propergate it up to the tabbed pane.
Does anyone know how I can do this?
Thanks, Nick.

Hi guys. Thanks for the responses but it still isn't working.
I changed my component to this:
list.getInputMap(JComponent.WHEN_FOCUSED).getParent().remove(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, InputEvent.CTRL_DOWN_MASK));and it does remove the ctrl-page down from the JList. However, it still isn't being propergated to the JTabbedPane.
In case it helps, this is how I'm adding the action in the tabbed pane:
tabbed.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, InputEvent.CTRL_DOWN_MASK), "nextTabAction");Am I doing something wrong?
Thanks, Nick.

Similar Messages

  • Illustrator CS6 has suddenly stopped responding. I can open it but get the revolving icon when I try to use any tools etc. Help

    Illustrator CS6 has suddenly stopped responding. I can open it but get the revolving icon when I try to use any tools etc. Newsgroup User

    Moving this discussion to the Illustrator forum.

  • After a few minutes, the page down won't work without clicking the mouse pointer on the page I am reading to activate page down again. Is there a way to go back to page down working every time without having to click the page first?

    Question
    After a few minutes, the page down won't work without clicking the mouse pointer on the page I am reading to activate page down again. Is there a way to go back to page down working every time without having to click the page first?

    Today, two other users reported issues with the back-forward history list dropping down if they hovered the mouse pointer over the back or forward button -- without clicking -- and then moved the pointer downwards. One user was on a touchpad, I don't know about the other user. Are you experiencing anything like that?

  • ITunes opens but without any text showing.  Drop down menus have text but not the app itself. I have a Mac Powerbook Pro running Windows XP under Boot Camp.

    Running under Windows XP,  a few upgrades ago iTunes started opening without any text showing in the application.  Clicking on PLAY will play music but no text shows to indicate what's playing and no text to show music library. Drop down windows show text but not the app itself.
    Subsequent upgrades and reinstalls have not corrected the problem, When I run under iOS (Snow Leopard), iTunes opens with text and runs correctly.
    Help!

    Because I created FAT32 partition using Boot Camp tool few days ago I installed my custom copy of Windows XP with SP3, IE7 and WMP10 integrated using nLite (for WMP10 integration use RVM Integrator). I did not use Boot Camp tool this time - I just booted CD using Option key. Then I installed Boot Camp 2.0 drivers you can find on Mac Disk 1. After this I installed Boot Camp drivers 2.1 update. In Add or remove Programs I checked drivers - I uninstalled old drivers which call identical, but you can skip this. Everything works fine BTW it is better to format your partition to NTFS - you have much less disk errors, you do not waste time for disk errors scans during Windows startup, your data are much more safe. If you need NTFS write permissions use great tool Paragon NTFS for Mac OSX or open source NTFS driver.
    Message was edited by: limo79

  • Mouse wheel stops scrolling page, and sometimes refresh does not refresh the correct tab, but the first one in the window.

    I have 27 firefox windows open with a grand total of 141 tabs.
    Some times the input is directed to the wrong window. I will click refresh and it will refresh the first tab in a window, but not the tab I am on. Apparently this also happens when I try and use the mouse wheel or the up and down arrow to scroll a page.
    Some times it works correctly on 1 window, but when I switch to another scrolling stops working.
    Usually rebooting the computer helps, but I should not have to do that.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I want to always be able to page down using space bar, but some web pages seem to disable this.

    I often use the space bar to page down in web pages rather than scrolling with the mouse or arrow keys, but in the last few months I've encountered a number of pages that don't seem to allow this browser feature to work. For instance, space bar doesn't page down on https://medium.com/about-work/65d4740f7a2f, although it works fine on mozilla.org and nearly all other sites. The problem is specific to particular pages, so I think it's unlikely to be an add-on problem, and it's certainly not that I've turned on caret browsing. As far as I've tested, the arrow keys still work to scroll such pages, and the mouse always works, so it seems as if space bar has been specifically disabled. (Generally the pages on which space doesn't work seem to be specialized for phones, judging by layout and font size.) Is it possible to reject whatever code is disabling my browser so that my space bar always works?

    Another possibility would be a userscript. A userscript is generally written to work on a particular site, although it also can be made to work globally on all pages.
    To run a userscript, you require either the Greasemonkey extension or the Scriptish extension.
    And somebody to write the script! You can propose a new userscript to the community and see whether anyone is willing to create it for you.
    Ideas and Script Requests forum: http://userscripts.org/forums/2
    (I searched briefly on userscripts.org but didn't see a script for this purpose posted there. Please be careful in testing scripts from the site as many recently posted scripts mess with your Facebook account when you visit FB.)

  • The page loads stops at Page error & then tells me to contact the Support team.

    When I Google something to search, the page loads but stops and tells me "Page Error, contact the Support Team."

    As I replied in your duplicate thread, these are user-to-user forums, you are not talking to Apple here.
    You can contact iTunes support via this page :http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • I can't order more than one picture at a time in iphoto.  I am holding the command key down and highlighting two but only the last one is showing up

    Hi,
    I need help placing an iphoto order online for prints.  I have a few pictures I want in a few sizes and it seems to only allow me to select one at a time.  I have held the command key down but it defaults to the last picture i selected.  I appreciate your help.

    What system and iPhoto versions are you using?  As a quick test try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists.  See if you can get all of the selected photos in the order window as it should be.
    If you can't then try this:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • Pages 09 is installed. But on the received e-mail was not a serielnr for activating pages so i cannot save or print any document.

    I have downloaded Pages 09 on the i-Mac with the Lion version.
    In the e-mail for confirming was mentioned an Ordenr....... and a long nr  of 12 figures......
    After making a document,it was not possible to save or print out.
    I get a sjabloon with the text that I have to activate iWork first.
    Next click gives me the sjabloon  that i have to buy the complete  version iWork!!!!!
    or to fill in the serialnr of Pages mentioned in the sended e-mail from apple store.
    I have tried that long nr (in case that this is the productserialnr....) but no any result.
    Apple-store employees were not able to help me.
    Where can I find the serialnr...as nr in the email was not working.
    We have also tried with apple employee to remove Pages of the computer and empty the  trash
    for complety removig,but....... we still keep the message  that Pages is  INSTALLED.
    So long we have this message we cannot re-downloadin program Pages according the apple employee!!!!
    Apple is not able to solve this problem.
    In mean time I have used my back up and also controlled the e-mail.
    Pleas help me
    Thank you
    Martin Duynstee
    [email protected]

    This might be simple but it works well for me.
    1. 
    Right click on the tool bar in IE8 and uncheck adobe PDF to disable.  Click yes when it ask if you are sure.
    2. 
    Open Adobe
    READER located in the start menu.
    3. 
    Click on Edit and then on Preferences.
    4. 
    Select the "General" category.
    5. 
    Click on "Select default PDF handler"
    6. 
    Adobe Reader should be already selected. Change it to reader if it is not.
    7. 
    Click on "Apply" and except changes.
    8. 
    Restart the computer and you are done.
    Now you can open and save PDF's from IE8.  Once you save it, you can right click and "open with" Acrobat if you choose. 
    Be careful to not make Acrobat the default or you have to start over.
    You can still create PDF's from docs, scans, and picture like before.  You might think this is a work around but it really isn't. 
    Some forms that are available on the internet can't be opened by Acrobat for security reasons.
    Good luck!      P.S. I am not an IT tech but I play one on TV.

  • I REALLY hate the page up/page down functions that automatically loaded with the program. I LIKE to use my page up/page down keys for web browsing. How can I get these keys to work properly, or any of the keys to work "normally" as I have in the past?

    When using certain keys on my keyboard, they don't work like they are "intended" to be used. I HATE how Firefox has changed those functions without my request. How can I get my keyboard to function as it "should"?
    Thank you.

    When using certain keys on my keyboard, they don't work like they are "intended" to be used. I HATE how Firefox has changed those functions without my request. How can I get my keyboard to function as it "should"?
    Thank you.

  • Changing "page down" keys on G3-Pismo

    On my G3-Pismo, I like the way function-keys operate on the top and bottom-left, but not bottom-right where there is an option-key (which I rarely use) but no command-key (that I often use) and -- this is what bothers me -- there is a "line down" key, but to get "page down" you have to simultaneously push the "fn" key at bottom-left. This seems like a bad design choice, since I (and also others?) OFTEN use page-down (when reading web-pages,...) but almost never use line-down. WHY would they make these choices, for option & line-down?
    More important, is there any way to CHANGE the function of these keys? It would be great if I could re-define their function so they would do a "command" and "page down". Is this possible?
    Craig

    Even the menu item for Go | Down doesn't work. 
    Page up works for me, though.
    Weird.

  • Bind a key to page down

    Hi,
    I have an android tablet, and  like to use it to read PDF documents, but it would be much more confortable if I could bind a hardware key (eg sound control) to page up and page down action. Swiping is not the most confortable way to go to the next page.
    Did I miss an option, or should this be a feature request? This is the only feature I misse to confortably read PDF docs on my tablet.
    Thanks
    Raph

    As is the case in your other posting regarding JButtons: JLabel does not have a setAccelerator method.

  • In BDC Page down command is not working for MB1C T. Code

    Dear Experts,
    I am writing BDC for MB1C, in this to enter serial number for material, when exceeds the limit, the page down command not woking.
    i wrote the below
             IF sn_count = 20.
                PERFORM bdc_dynpro      USING 'SAPLIPW1' '0200'.
                PERFORM bdc_field       USING 'BDC_CURSOR'
                                                     'RIPW0-SERNR(01)'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                              '=RWS'.
                sn_count = 2.
              ENDIF.
    in my recording i got below
    perform bdc_dynpro      using 'SAPLIPW1' '0200'.
    perform bdc_field       using 'BDC_CURSOR'
                                       'RIPW0-SERNR(07)'.
    perform bdc_field       using 'BDC_OKCODE'
                                       '=RWS'.
    please help me.

    sorry I missed this part with the serial numbers, I thought you were in the item overview.

  • I am using the "Menu Selection With Events.vi" example alongside other while loops, When I select exit from the new menu it stops the other while loops but not the menu/event while loop

    The event driven menu example works fine and I've integrated it into my application. I have built in simple local vars to link menu selections to existing GUI buttons. The problem is that I cannot get the File-Exit menu option to switch off/terminate the application. The [1] "Stop": Value Change panel of the event structure simply switches off the other while loops but leaves the event while loop running. Add a while loop to the axample using a local var from the event while loop to terminate 2nd while loop to get the effect.
    Help appreciated, Chris

    Attached you will find a modified version of your VI.
    I documented what I did on the block diagram.You were right on you just needed to add a variable with a true wired to it.
    Have fun with it.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    Menu_Selection_with_Events_%26_while_loop[1].vi ‏76 KB

  • How to avoid the page to move up when I click the button on the Tableview?

    Hi, EP fellows.
    I currently have 3 tableViews and 1 header form set in one jsp page (I know, it may not be a good design to put three tableView in one jsp page.....but for the sake of avoiding client side eventing between each tableViews..I combined them into one jsp page). I set the Load/Navigation value to be URL. 
    Here is the problem. Everytimes I click on the Navigation button (Up/Down) to navigate the tableView data to another page, the whole page will move up and away from the table that I navigating.
    I know it is bacause the page get refreshed, and go to the first item of the page. In this case, how do I avaoid the page to move up and away form the tableView? As it is really look bad when user click on the button, they have to scroll back to the tableView they click.
    Thanks for advices.
    Kent

    As far as i remember,this javascript function pops user a dialog to save a file:
    javascript: document.execCommand('SaveAs','1',null);
    But i m not sure will it pop up for pdf, just try to google javascript to save a pdf file.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for