test and example code posted to the jogamp forum by its users