How to set custom size for cursor in swing?
- by swift
I am using the below code to set a custom cursor for JPanel, but its enlarging the image which i set for cursor.
Is there a way to set a customized cursor size ?
Toolkit toolkit = Toolkit.getDefaultToolkit();
BufferedImage erasor=new BufferedImage(10,10, BufferedImage.TYPE_INT_RGB);
Graphics2D g2d=(Graphics2D) erasor.createGraphics();…