What is wrong with this processing code?
As @Matt said, 


  The problem you have is not with the Arduino


Put if(port.available()&gt;0) in the timer, or as event instead of void draw(). Furthermore, I can't found the calling of draw in your code.