I want to re-use the current Mouse Pointer. I want to use the current selected mouse Pointer image and want to underlay another image. The application is written in java
the idea is, i have a tool bar and when i use the save-tool, the cursor should be a custom tool-image (disk) and over this the mouse pointer image provided by the underlying operating system.
so far i know how to change a cursor:
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = toolkit.getImage("images/diskimage.gif");
Point pointerPos = new Point(1,1);
Cursor c = toolkit.createCustomCursor(image , pointerPos, "cursorname");
myPanel.setCursor (c);
and i know how to paint images on each other, so i can create a merged image. the problem is, that i don't want to use custom cursor images, but instead enhance the cursors that are already in use.
--> but how can i get the image from the cursor from the underlying operating system?
JPanel myPanel = new JPanel();
but how can i draw this cursor? – Martin Frank Jul 30 '14 at 11:09myPanel.getCursor()