954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Key Logger vs Key Listener

Hello,

I am confused between the differences between a key logger and key listener in Java....i looked online but I couldn't find a straight-up answer.

Thanks in advance!

caswimmer2011
Light Poster
27 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

You may search the Google for keylogger virus, and key listener...

They are somewhat similar in functionality (capture user's key stroke), but they have different purposes in use.

Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
 

Keylogger is a software which will captures all your keystrokes and activity you do on the computer. Whereas KeyListener is a interface in java which you should implement in your java code if you want to capture key strokes.


Making keylogger in java is NOT possible.

harinath_2007
Posting Whiz
355 posts since Aug 2010
Reputation Points: 78
Solved Threads: 36
 

There is no "Keylogger" interface in Java. So the thread title does not make sense.

Anyway, to add to what harinath said, You cannot make a keylogger using java. It lacks the low level operating hooks needed to do it.

Akill10
Posting Pro
575 posts since Sep 2010
Reputation Points: 115
Solved Threads: 80
 

Hello,

I am confused between the differences between a key logger and key listener in Java....i looked online but I couldn't find a straight-up answer.

Thanks in advance!


If I am not mistaken, a key logger is a program you have to create that uses the key listener as a tool to "Listen" for when keys are pressed. Maybe there is a key logger command I don't know of though... Does this help at all? This may be helpful: http://download.oracle.com/javase/6/docs/api/java/awt/event/KeyListener.html

Vreality
Newbie Poster
4 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: