How to add hotkey(Ctrl+VK) to a button?

Hi buddies,
I've added a button to a panel, and used
setMnemonic(KeyEvent.VK_R)to set a hotkey Alt+R for triggering the button event.
However, the requirement is changed, now, I need to use 'Ctrl+R' as the
hotkey for the button.
Will you please give me some hit on this?
Thanks!

How to Use Key Bindings:
http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

Similar Messages

  • How to transform hotkey ctrl+L to F9

    My app is oracle form 10g.
    I wonder how to transform hotkey ctrl+L to F9 because in my company everyone is used to press F9 to query .
    Would someone tell me?
    Thank you.

    I don't understand exactly what you want to do.
    Refer to fmrweb.res found in the \forms directory. This is the file used to configure key mapping. This is a text file, so it can be opened in most text editors. The top portion of the file provides an explaination as to how each value works.

  • How to add Change Layout, savelayout, select layout Button to ALV Toolba

    How to add Change Layout, savelayout, select layout Button to ALV Toolbar?
    Moderator message: please (re)search yourself before asking.
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    locked by: Thomas Zloch on Sep 10, 2010 10:57 AM

    Variant
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                is_variant          = gs_variant
                i_save              = c_save
              it_default_fieldcat =
           IMPORTING
                e_exit              = gf_exit
                es_variant          = gs_variant
           EXCEPTIONS
                not_found = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF gf_exit = space.
          cf_varia = gs_variant-variant.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = gs_variant
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
      IF sy-subrc NE 0.
        cf_subrc = sy-subrc.
      ENDIF.
    Change Layout, savelayout, select layout Button  pass the value which is in BOLD
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                =  gd_repid
         i_callback_user_command           =  'U_COMMAND'
         i_callback_top_of_page            = 'TOP-OF-PAGE'
                         is_layout                    =  fld_lay
           it_fieldcat                  =  fieldcatalog[]
                       IT_EXCLUDING                  =
                       IT_SPECIAL_GROUPS             =
                       IT_SORT                        =  it_sort[]
         i_default                      = 'X'
         i_save                         = 'A'
         is_variant                     = gs_variant
         it_events                      =  it_event[]
        TABLES
          t_outtab                      =    it_sales
                     EXCEPTIONS
                       PROGRAM_ERROR                     = 1
                       OTHERS                            = 2
    Annasaheb

  • How to add the BexAnalyser as standard radio button to the add-ins?

    HI All,
    how to add the BexAnalyser as standard radio button to the add-ins.
    Thanks
    Vasu

    What do you want to do? Pls give some more details.

  • How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    Thank you for your reply, William.
    Well, we just want the PDF to open when we click on the “Help” link of the Application.
    Also, we have the PDF ready. 
    Is it a job of a UI Developer? Do we need to tell him to link this PDF to the Help button or link of the Application?

  • How to add new entry, in table on button click.

    i have 2 input ,witch i am taking from numeric controls. this 2 input are use to calculat my output.
    on button click i want these 4 things should go in the table.
    now my problem is when i click the button previous entry in the table get lost...
    plz help me to slove this problem.

    When you want to preserve the existing values in a table or array, you need to use "Array -> Build Array". Wire the local variable of the table or array to top entry, and wire your new entry to the bottom. Depends on the dimension of the array and the postion you want to add. You might need to some array manupilations. Try out some of the array VIs to see how they work.
    Joe

  • How to add a hyperlink to a image button in theme area?

    Hi!
    We need to make an image button (on the theme area) to be
    clickable -- i.e., once you click that image button, it will
    call www.yahoo.com.
    Please advise how to do it.
    Points guaranteed. Thanks!

    Hello,
    Maybe this will help you?
    http://help.sap.com/saphelp_nw70/helpdata/en/9d/52f973810cb448842e35e13ad6c992/frameset.htm
    Gene Madikrama

  • Acrobat 9Pro - How to add a submit (to email address) button for an online fillable PDF form.

    Sorry if this has been answered before, but this is my first time trying to add a submit button to the bottom of a online fillable pdf form. I have 5 of these froms to do. I need the user to go to my website, click the link to open an online fillable form, fill it out and click a submit button in the form, so it can be emailed to an individual. I thought I followed all the steps correctly in Adobe Acrobat 9 Pro, every which way I could find, but the form gives me an error "this operation not permitted", it's in IE, created in Vista and I now have a headache. Do I need to add extra code to my website html somewhere?
    Does anyone have the neccessary steps to make this work, a video would be even better. Do I have to have this LifeCycle Designer thing?
    My url in case anyone wants to see it. http://www.dyenetwebdesign.com/DaysGoneBy/forms/index2.html
    Thanks sooo much!!
    Deb Dye

    Some comments based on your application:
    1. It looks like might likely exceed the 500 use limit, in that case to not use Reader Rights or you will violate the license. The cost beyond that can be negotiated with Adobe (if they will talk to you), but don't expect it to be check. In that case, submit the form data as and FDF file. This file can be imported into the form at your end and get exactly the same results as if the whole form had been sent. The FDF submission does not require Reader Rights. The parent will still be able to print the form, but saving would require having Acrobat, not Reader.
    2. A lot of the data appears to be personal in terms of the name of children, addresses, etc. It would be a good idea to check with legal counsel about submitting such information by e-mail, particularly for children. E-mail is not generally considered secure, unless you possibly used some form of secure e-mail. For that reason you should consider submitting the data to a web script that would be stored someplace for you to obtain it and possibly send you a notice of receipt. A secure website is preferred for this use. You should keep the option open for anyone to submit the form in paper if they object to the potential security risks with your online submission method.
    I know those put rinkles in your forms, but for such an application it is a good idea to consider the potential consequences if you do not worry about the form security and number of uses. The potential is to put you out of business or more. OK, an extremist view, but worth considering.

  • How to add convert traditional chinese / simplied chinese button?

    After installing Microsoft Office 2010 Proofing Tools Kit Service Pack 1 (SP1), the button of Traditional Chinese to Simplied Chinese
    or vice versa still cannot be seen in the "Review" of Word.  How can I install it?

    Hi,
    As per below thread, looks like you might need to install both Simplified and Traditional language pack to enable that feature in Office 2010:
    http://social.technet.microsoft.com/Forums/en-US/82bbb91f-2ead-4efd-92d9-eb0fe2d3838d/how-to-convert-traditional-chinese-to-simplified-chinese-with-excel-2010-?forum=officesetupdeployprevious
    Buy and download language pack for Office 2010:
    http://www.microsoftstore.com/store/msusa/en_US/pdp/productID.253665800?cdid=en-us
    Thanks,

  • How to add a "Create and Create Another" button to form

    I have an input form on a table with several LOV select lists and a text field. To ease data entry, the user wants to create several records, one at a time, by remaining on the same form page. Built-in APEX functionality adds the record and returns the user to the report page.
    User wants to create the first record by clicking the Create button, stay on the form with all the LOV values as they were (not clearing cache), change one or two LOV choices and the text field, and click a "Create and Create Another" button. The user will stay on the form until clicking the "Cancel" button.
    I changed the branch on the form to call itself. The LOV and text field values remain, but the "Create" button disappears to add another. Of course, I'll need to run the Get PK process to get the next sequence number for the new record.
    Looking for the best way to accomplish this. Thanks!

    If it is using the default setup, I believe you would clear the PK field (and now others) on branch to same for "Create and Create Another", as that is the default criteria for whether the Create button is shown.

  • How to add event hadling to Accept Call button

    Hi
      In the home screen of interaction screen,i had one button named accept call button
    so now we dont have any event for that button click
    so now i have to implement the event for that button.so after pressing that button i need to initiate the interaction record event..
    pls help me in this regard

    What ur trying to do is stnadard delivered functionality...Pl post this message in IC forum.
    Raj

  • How to ADD field in iview ?

    hi,
    in portal-iview i want to add a field.
    when i go to 'portal-content -> open the iview with right click -> preview' and then
    do ctrl-alt-right-mouse click i got to the customizing of the fields.
    i know how to HIDE fields there, but i don't know how to add fields ? in the list
    of the fields the necessary fields are available, BUT i only have to options:
    hide -> YES or NOT PERSONALIZED
    any ideas ?
    reg, Martin

    Gopal,
    the root element of this fields does NOT have the option 'decorate'.
    it is the quoata overview of ESS : sap.com/ess~quotas
    the top of the tree has option 'decorate', but this is above the necessary table where
    i select the data.
    my adrl is 
    martin.svik(at)denzel.at
    maybe we can 'change' some screenshots where you can send me yours and i can
    send you mine to explain it in a better way
    reg, Martin

  • How to add blank page to existing Document In Adobe Dc

    how to add blank page to existing Document In Adobe Dc Pro

    Hi thashrifs16749461,
    You can add a blank page using Adobe Acrobat DC by following the below instructions :-
    1) Open your existing pdf document in Acrobat DC.
    2) Choose the 'Organize Page' option form the Tools pane on the right as shown below in the screen shoot.
    3) Now at the top you will see all the tools to Organize the page, Click on 'Insert' & select 'Blank Page' from the drop-down to insert blank pages.
    *Shortcut : If you are using windows computer you can use ' Shift+Ctrl+T ' key to insert blank pages.
    In case if you experience any issue or have any query please let us know. We will be happy to help you.
    Regards,
    Aadesh

  • How to add some image in adobe muse

    hi.. im just new in adobe muse .. im sorry for this very noob question.. i just want to ask how to add some image in adobe muse ?? with a link .. thanks

    To add images press CTRL+D and then select the image and place it where you want.
    To hyperlink it go to the top menu and there should be Hyperlink folowed by a box. Enter your URL to link in there.
    You can also use the slideshow widget should you want to make a slideshow.

  • How to add 'profit center'  under documents of dynamic selections in FBL5N

    Dear Friends,
    In fbl1n (vendor line item display) if i choose dynamic selection ..left side of the window consists of fields....under document ...'profit center' is there....
    In fbl5n(customer line item display) for the same ,profit center is not there.....!!!
    How to add 'profit center' into the available list in FBL5N
    Regards,
    Madhu..!!!

    Hi,
    Do Ctrl + f8 (Change layout).  In it u have profit center for FBL5n
    Pls. assign points, if useful
    Regards,
    Sridevi

Maybe you are looking for