I tried to use jogl, but I could not find out how to do that. It seems like a basic functionality, but I saw no documentation about it.