code: public void setCursor(CursorMode cursorMode) {
          Cursor c = CursorMode.getAWTCursor(cursorMode);
  
          if (c.getType() == panel.getCursor().getType()) return;
          panel.setCursor(c);
      }
docs: Change mouse cursor image
  
  @param cursorMode
  A cursor type