I am not sure if this is a duplicate of 4817479. If yes, please reopen 4817479. It happens in automated tests of NetBeans IDE that a shorcut action executed by Robot is done multiple times. I created a test case which shows that after Robot.keyPressed() it behaves differently on window and on Linux. On windows a KeyListener receives just one KeyPress event but on Linux the KeyListener receives multiple KeyPressed and surprisingly KeyReleased events. Run "java TestRobot" and click the "Test it" button. On Linux a counter of events never stops.
Redhat Linux 2.4.18 - Gnome
Redhat Linux 2.4.19-4GB JDS2 Gnome
JDK1.5.0-b63