http://www.processing.org/faq.html#java The main rule when using Java code: You cannot use most of the AWT or Swing (which is built on the AWT), because it will interfere with the graphics model. If you want to add scroll bars and buttons to your projects, you should make them using Processing code, or embed your Processing applet inside another Swing or AWT application (see below). Even if they appear to work, such sketches will usually break when you try to run on other operating systems or other versions of Java.
Screw AWT and Swing
Also : Not so perfect
We currently only support Java 1.4 (and earlier) syntax. You cannot currently use 1.5 syntax in the Processing Development Environment. This means no generics, templates, enum, varargs, foreach, and the rest. If you want to use Java 1.5 (or later), take core.jar and develop your project with another Java IDE (again, see below). More about Java versions can be found on the platforms page. A couple of the syntax features in Java 1.5 are very useful (the enhanced for loop, some aspects of generics) so if you would like to use them in Processing, please give us a hand. You can start by visiting this bug which describes the obstacles to 1.5 support.
but workable... ...maybe...
Any advice? Anyone out there tried to tie a large simulation codebase in 1.5 java to a processing frontend (Processing.org front end is not written yet, but shouldn't be too hard...)