Hi,
I would like to draw a 2D graphic ( cirlces, lines, ...) over my Canvas3D in a JFrame. It works as long as I do it in the paint method of the JFrame that contains my canvas3D. But if I try to do it by using the GlassPane of this JFrame it doesn't appears (I can see it if I remove the canavs3D!!)..... any idea??
Below is a piece of my code:

public classApp3D extends JFrame {
        publicApp3D() {
                getContentPane().add(canvas3D, BorderLayout.CENTER);
                 //MyGraphics2D class extends JComponent and overrides paint and update methods.
                MyGraphics2D th = new MyGraphics2D();
                setGlassPane(th);
                th.setVisible(true);
      }

David.

Reply via email to