Skip to main content

[java.awt.Robot] No invalid-keyCode exceptions - bug or feature?

No replies
Joined: 2004-01-07

Hi there!

I recently struggled a bit with the java.awt.Robot class and the keyPressed/keyReleased methods since they didn't do what I would like them to do.

When I tried it with Tiger I immediatly got an Exception with the message that the keycode is invalid but with Mustang it just did not work and I did not get a message at all.

I was using Mustang-B52 under a out-of-the-box Fedora Core 4 with german-keyboard layout.

lg Clemens