?
Solved

KeyEvents

Posted on 2005-04-08
4
Medium Priority
?
273 Views
Last Modified: 2010-03-31
Hey all.

When someone types something (when focused on a component, with a KeyEvent listener), does *just* the keyTyped() method get called? Or does it *also* call keyPressed() and keyReleased()  ??

Because, a keyType is just a keyPress then a keyRelease, right? Well, is the keyType only called (and the other two are not) when the interval between keyPress and keyRelease are very low?

Regards;
0
Comment
Question by:InteractiveMind
  • 3
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 13740411
The keyPressed and keyTyped get called, followed by keyReleased
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 13740414
0
 
LVL 25

Author Comment

by:InteractiveMind
ID: 13740429
Okay. Great... one less method call for me :)
Cheers, CEHJ.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 13740928
:-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question