The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


key adapter?

Posted by Chin Loong on January 16, 2002 at 9:40 AM

corina, u don't need to use key listener on jtextfields if u only want to listen for the [enter] key. action listener would be okay. i don't know about how the performance would differ, but my practise is to use action listener if i want to listen for [enter] key *only*, and keylistener if i want to listen to other keys such as F2 or [delete]. any comments from other people?


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us