How can we trape the Keys Pressed on the Keyboard and do action depending on the keys

I want to know how we can capture the keys pressed on the keyboard by the user and do necessary action depending on the key pressed by the user....
For example.... If user press Alt+q the form should go in the Enter Query Mode.
Can anyone tell me how i can do this in Form 6i....
Please Help me out from this problem...
Thanks in Advance
Shan

Can somebody point me to what I need to use to
intercept all the 'keys' for an application.
At the moment I have set Focus to parts of the
application when the Mouse is over it, and then get
the Keys with a KeyListener.
Is there a way to get the keys, as long as the Java
app is active.
- Its an image display program, and I want to use keys
for - next image , zooom etc etc.
If soemone could just point me to the right part of
the API to look in?java.awt.Toolkit.addAWTEventListener()
then use the mask defined in AWTEvent.KEY_EVENT_MASK to listen to all the events.
Steve

Similar Messages

  • Express Lane advised that I use the Install Disc to fix a problem.  I inserted the disc, pressed C as advised and restarted, nothing comes up, the computer just goes on and off - any advise on starting the laptop and getting the disc out?

    Stuck in restart mode -- Express Lane advised that I use the Install Disc to fix a problem.  I inserted the disc, pressed C as advised and restarted, nothing comes up, the computer just goes on and off - any advise on starting the laptop and getting the disc out?

    You insert the disk and restart while holding down the 'c' key until you see the apple and spinning cog. Is that precisely what you did?

  • TS3048 My wireless mouse has stopped working after I recharged the batteries,the green light does not come on. I swapped the batteries from the mouse to my wireless keyboard and they work fine in the keyboard.

    My wireless mouse has stopped working after I recharged the batteries,the green light does not come on. I swapped the batteries from the mouse to my wireless keyboard and they work fine in the keyboard.What can I do?

    Hello:
    Try resetting the SMC and PRAM.
    Barry

  • TS1382 i have a new computer -- how can I get my music from my 2 ipods and my iphone on to the new computer.  I have downloaded itunes but can't get my music from the devices to load on the computer !!!! Help ????

    Need a little help.. New computer !!!  How do I get my music from my 2 Ipods and my Iphone to the newly installed and authorized computer?????

    This user tip provides the steps how to sync your iPhone to your new computer. It should also work for your iPods too.
    https://discussions.apple.com/docs/DOC-3141

  • How can I keep Firefox from keeping my login name and password from being in the dialog boxes when I sign on on gmail? It allows anyone to log into my email account

    When signing on to my gmail account the two dialog boxes, one for account name and the other for the password are already filled in. The password box has dots for the password but anyone who clicks on the sign in box can read my mail. How do I change this? It appears to be a Firefox related issue because it doesn't happen if I sign in on Safari or Internet Explorer. I would appreciate your help.

    See [[Remembering passwords]], you can turn this feature off.
    You also can [[Remembering passwords#Viewing and deleting passwords|view or delete the saved passwords]].
    Please let us know whether that works for you.

  • How can I return my Curve, too many problems syncing and died on me with the last updates. no more patience, Canada Bell

    By the way your link for warranty do not work on your website....???
    Should I return it to Bell for General Failure ?

    Unfortunately, I'm in the same club, and also seeking a solution to the problem. I have approx 8000 songs and my ipod is a 3 mo. old 80 GB. I think I'm stuck working this out with Apple directly, which I'm dreading..and I'll be damned if I'm paying shipping charges for an IPOD that BEST BUY can't exchange beyond the 30 days post purchase, and can't do any more due to Apple's mandated service process. If a prompt resoluiotion with no further cost me is unavailable, I'd sooner throw the Ipod in the garbage, cancel my plans to by the Iphone, and live my life Apple free. Steven Jobs may know innovation and technology, but his knowledge of customer service could be his undoing one day.

  • How can I reformat my MAC BOOK leopard, disc 1 and 2 are working.

    how can I reformat my MAC BOOK leopard, disc 1 and 2 are working.

    Put the first OS X 10.5 Leopard disk in the system, and reboot holding the c key down. On the menu bar, under Utilities, bring up Disk Utility. If you want to erase the hard drive, under options do a secure erase, which will write zero's to the hard drive.

  • How can I trap the question 'Could not reserve record (2 tries). Keep tryin

    How can I trap the question 'Could not reserve record (2 tries). Keep trying ?'
    How can I trap the question 'Could not reserve record (2 tries). Keep trying ?'
    I want to know the error_code for this question before the 40501 error code.
    Thanks for the help.

    See
    Could not reserve record (2). Keep trying ?....

  • Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • How can I trap & display HTML syntax errors in mx:HTML at run time?

    I am loading HTML pages into an mx:HTML component in an AIR application. If the HTML contains errors, they show up in the trace window in debug mode.  I'd like to trap that information so I can tell the usere that there are errors (and what they are) in the production version of the application. How can I get at those errors?

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I trap Out- of-Memory data with no crash after Crop Tool fails to finish?

    The Photoshop 6 beta program froze while using the crop tool on an image size of 8052x5368. I tried to save a file in another program while waiting for the crop to finish (usually about 1 second) and got an out-of-memory error. I checked the D: driv where the file in the other program was saved. I have a flash C: drive and is not selected in the scratch disk preference. Two scratch disks, E: and G:, are selected with a total of about 800GB free space. After closing PS6Beta, the D: drive recovered about 164GB. The D: drive is not selected in the Scratch Disk list. I work with larger files and anticipate this problem again.How can I trap information for Adobe next time?
    Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x32
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2664 MHz
    Built-in memory: 16375 MB
    Free memory: 13523 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K

    The problem remains for how the c: and d: drives were not selected in the scratch disk list. I tried again with only E: and G: drives and the file completed after 20 minutes with a 27.7G file. It would have been an ovious problem if the "info" diaglog box included the projected file size and/or dimensional units (px or in) because I use the dialog for verifying the size of the image. I wanted to make a 300 x400px image rather than a 300x400inch image( 90000x120000px).
    Thanks for your quick help.

  • How can we give a padding-right:28px; to a frame in firefox, while all the other browsers are supporting the padding style which firefox Mozilla browser doesn't . can anyone help me on this.

    How can we give a padding-right:28px; to a frame in firefox, while all the other browsers are supporting the padding style which firefox Mozilla browser doesn’t . can anyone help me on this.

    That should be working.<br />
    Can you post a link?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25<br />

  • I have a macbook pro. i think i might have pushed some buttons that made my macbook look for a wireless keyboard.. i dont have any wireless keyboard. and now i cant use the keyboard on my macbook. how can i get the normal keyboard staring?

    i have a macbook pro. i think i might have pushed some buttons that made my macbook look for a wireless keyboard.. i dont have any wireless keyboard. and now i cant use the keyboard on my macbook. how can i get the normal keyboard staring?

    korgba wrote:
    it pops up a script were it says that the macbook cannot find a bluetooth keyboard, and it isnt a keyboard connected
    For some reason, your Mac doesn't recognise that a keyboard is present, so it looks for a wireless keyboard. The question is, why doesn't your Mac recognise that a keyboard is attached?
    First, you need to make sure you remove all peripherals, especially USB peripherals (the keyboard is on the USB bus). Then restart holding down the Shift key. This should boot in Safe mode. If the computer boots normally (not in safe mode) and the keyboard is still not working, try resetting the SMC
    Intel-based Macs: Resetting the System Management Controller (SMC)
    <http://support.apple.com/kb/HT3964>
    If that still doesn't fix the problem, then the keyboard (or its controller) is probably damaged and needs to be replaced.

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • HT3951 I purchased a movie on the AppleTV 2 but it is not showing up in iTunes on my desktop computer. How can I sync? (have lastest version of iTunes and ATV2 software)

    I purchased a movie on the AppleTV 2 but it is not showing up in iTunes on my desktop computer. How can I sync? (have lastest version of iTunes and ATV2 software)

    Of course it always works, what are you talking about.
    I appreciate that re-downloading is only available in the US and then only with certain content. However content that cannot be re-downloaded is not offered for purchase on the Apple TV.

Maybe you are looking for

  • Hard Drive upgrade on a DV6324us?

    I have a DV6324us laptop that I bought 3 years ago and am needing some additional memory on my hard drive.  Currently I have 2GB of RAM, AMD Turion 64x2 TL-50 processor, and 100GB hard drive.  I have been researching upgrading the hard drive, but I'm

  • Is it possible to call web service from ABAP SAP 4.6 c..If yes how

    Hi Friends, Is it possible to call web service from ABAP-SAP 4.6 c..If yes Could you please let me know how. Thanks in Advance. Murali Krishna K Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:09 PM Edited by: Murali Krishna Kakarla on Jan 26, 20

  • Error starting the Application Server and Deployment Tool in Windows 2000

    After installing the iPlanet Aplication Server with sp3 in Windows 2000 I get the following errors starting the Application Server and Deployment Tool. iAS Application Server ================ GXBindInit: GXBindBasic failed GXContextInit: GXBindInit f

  • Compact Flash Drive Destroyed.... by Lion apparently

    I have been importing RAW photos from my 8 GB compact flash card into iPhoto for 3 years. The other day, I went to import and I got an error from OS X that said: OS X can't repair the disk "DISKNAME" Then the error: The disk was not ejected properly.

  • Specific differences between AP and bridge modes?

    I've RTFM'd everywhere but cannot find anything definitive regarding the differences between AP+client versus bridge+bridge modes. Presume you have a pair of AP1200's. First test case: One is in AP mode and the other is in WGB mode. Second test case: