keyDown event help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: keyDown event help

  1. #1
    Jedi276 Guest

    keyDown event help


    i can only get the applet to register the key presses if the
    cursor is in a text box area, how do i get it so that it will when it is
    out of the text box area??

    thanks

  2. #2
    mike m Guest

    Re: keyDown event help


    sounds like you only have the KeyListener registered on the TextArea control.
    you need to register the listener for each component that will respond to
    the KeyListener.


    "Jedi276" <Jedi276@hotmail.com> wrote:
    >
    >i can only get the applet to register the key presses if the
    >cursor is in a text box area, how do i get it so that it will when it is
    >out of the text box area??
    >
    >thanks



  3. #3
    Jedi276 Guest

    Re: keyDown event help


    what would be the code to do that?



    "mike m" <michaelm@saccapital.com> wrote:
    >
    >sounds like you only have the KeyListener registered on the TextArea control.
    > you need to register the listener for each component that will respond

    to
    >the KeyListener.
    >
    >
    >"Jedi276" <Jedi276@hotmail.com> wrote:
    >>
    >>i can only get the applet to register the key presses if the
    >>cursor is in a text box area, how do i get it so that it will when it is
    >>out of the text box area??
    >>
    >>thanks

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center