I know two libraries that allow you to use OpenGl with java.
LWJGL (lightweight Java game library Java), which is the best because of its simplicity and its similarities using opengl with c / C ++.
JOGL If you want to mix swing components with opengl, this might be the best choice, I never used it, but several years ago it was known that it was pretty buggy, I donβt know if it has matured since then.
As for drawing trees, there are many ways to do this, as another poster said, you can be more specific.
edit: I assume that I misunderstood the question, oh well: / You can load into a 3d tree model and display this.
Ari ronen
source share