Update processing-java function