java-rendering-example: active and passive