code: public static Cursor createHiddenCursor()
      {
          final Toolkit toolkit = Toolkit.getDefaultToolkit();
          final Dimension dim = toolkit.getBestCursorSize(1, 1);
          final BufferedImage c = createImage(Math.max(1, dim.width),
                                              Math.max(1, dim.height),
                                              java.awt.Transparency.BITMASK);
          final BufferedImage buffer = applyMask(c, Color.BLACK.getRGB());
          return toolkit.createCustomCursor(buffer, new Point(0, 0), "hiddenCursor");
      }
docs: Create a hidden cursor.
  
  @return Hidden cursor, or default cursor if not able to create it.