1. int[] pixels = new int[16 * 16];  //用int数组可以构建一个图片   
  2. Image image = java.awt.Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(1616, pixels, 016));   
  3. Cursor transparentCursor = java.awt.Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(00), "invisiblecursor"); //invisiblecursor是任意取的   
  4. setCursor(transparentCursor);   

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-09-02
  • 2021-06-13
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案