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!

Recommended Answers

All 4 Replies

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.

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.

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.