DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links