The JCarnac3D-OGL library provides a simple class to add a 3D view to your swing application : cgJOGL3DPlotView
Sample code
// create the view component cgJOGL3DPlotView view = new cgJOGL3DPlotView(); // set the scenegraph root view.setSceneGraph(createScenegraph()); // set the model bounds on the view view.setModelBounds(0, 0, 0, 100, 100, 100); // view controller cgDefaultNavigationManipulator manipulator = new cgDefaultNavigationManipulator(view); manipulator.setEnabled(true); view.addMouseListener(manipulator); view.addMouseMotionListener(manipulator); view.addMouseWheelListener(manipulator); //add the view to the JFrame (can be added as any panel) getContentPane().add(view, BorderLayout.CENTER);