I've noticed this same issue with Jaunty ... the input and rendering was fine in Ubuntu Intrepid 8.10 and is now slow after the upgrade. This issue is with P2D rendering, P3D and OPENGL work fine.
Examples such as Basics->Images->Sprites and Topics->GUI->Handles are very sluggish while 3D->Typography->LetterK and Libraries->OpenGL->YellowTail are snappy (as they should be).
I tried the following howto, but it didn't help:
HowTo: extremely speed up slow Java apps by enabling them to use OpenGL
http://ubuntuforums.org/showthread.php?t=1129187And here's a note from the Ubuntu Bug tracker:
https://bugs.launchpad.net/ubuntu/+bug/322561/comments/7
I tried the above in the launch script, but it only manages to make the gui appear more quickly then usual (which is nice actually).
I also tried using the sun-java6-jdk package and linking the java folder in the processing folder to use the system jdk. Processing worked, but the same issue remained.
This seems to be an Ubuntu 9.04 issue with Java in general and will hopefully be fixed soon.