Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes  Difference between Keypressed and KeyTyped Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark " Difference between Keypressed and KeyTyped" Watch " Difference between Keypressed and KeyTyped" New topic
Author

Difference between Keypressed and KeyTyped

Parthiban Malayandi
Ranch Hand

Joined: Apr 15, 2008
Posts: 70
Hi all,

I have searched about difference between KeyPressed and KeyTyped Events but still I'm not clear about that . One thing I have found is Keypressed is triggered first than KeyTyped .

Please clarify me when these are triggered exactly . Which is appropriate to use for which purpose ?

Thanks in advance
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyEvent.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Keypressed and KeyTyped
 
Similar Threads
Help! About hotkey
keyboard events
keyCode versus scancode
jcombobox.getEditor().getItem() empty
KeyListener && KeyEvents