Package javax.media.opengl

Examples of javax.media.opengl.GLCanvas.addMouseListener()


    GLCanvas canvas = new GLCanvas(glCaps);
    add(canvas,BorderLayout.CENTER);
    canvas.addGLEventListener(renderer);       
    canvas.addKeyListener(renderer);
    canvas.addMouseMotionListener(renderer);
    canvas.addMouseListener(renderer);
    canvas.requestFocus();
  }   
 
  public static void main(String[] args) {
    new Frame().setVisible(true);
View Full Code Here


    glScene.addGLEventListener(glEvents);
   
    r.addKeyListener(glEvents);
    r.addMouseListener(glEvents);
    glScene.addKeyListener(glEvents);
    glScene.addMouseListener(glEvents);
   
    r.add(glScene, BorderLayout.CENTER);

    return r;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.