import java.awt.Panel;
import java.awt.Point;
import java.awt.PopupMenu;
+import java.awt.Toolkit;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.InputEvent;
av.getRanges().addPropertyChangeListener(this);
- // set up custom cursor for use on Mac...
- Point hotSpot = new Point(16, 16);
- String cursorName = "Custom drag cursor";
+ Toolkit toolkit = Toolkit.getDefaultToolkit();
+ Image image = toolkit.getImage("images/dragcursor.png");
if (Platform.isAMac())
{
- dragCursor = getToolkit().createCustomCursor(dragImage, hotSpot,
- cursorName);
+ dragCursor = toolkit.createCustomCursor(image, new Point(15, 15),
+ "drag cursor");
}
else
{