Example usage for javax.media.j3d Canvas3D setCursor

List of usage examples for javax.media.j3d Canvas3D setCursor

Introduction

In this page you can find the example usage for javax.media.j3d Canvas3D setCursor.

Prototype

public void setCursor(Cursor cursor) 

Source Link

Document

Sets the cursor image to the specified cursor.

Usage

From source file:VrmlPickingTest.java

protected void addCanvas3D(Canvas3D c3d) {
    setLayout(new BorderLayout());
    add(c3d, BorderLayout.CENTER);
    doLayout();// w w w .ja  v a 2s .  c  o  m

    if (m_SceneBranchGroup != null) {
        c3d.addMouseListener(this);

        pickCanvas = new PickCanvas(c3d, m_SceneBranchGroup);
        pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
        pickCanvas.setTolerance(4.0f);
    }

    c3d.setCursor(new Cursor(Cursor.HAND_CURSOR));
}