First, if you wanna interface java with openGL, you need to download special library called JOGL, it includes all the packages that you will use to create 3D objects and manipulate it.
After downloading it, simply open a new project and add the .jar file as a reference to that project "right click on the project name, properties, add references".
Now, after setting the openGL environment, you need to know some basic information about openGL and 3D graphics in general, there is an excellent online tutorial called "NeHe" that will help you from A to Z. The code for linking openGL with java and defining a canvas are mentioned in the tutorial
http://nehe.gamedev.net/.
Hope this piece of information helps,