![]() |
|
[Java] Java custom cursors - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Java custom cursors (/showthread.php?tid=5463317) |
Java custom cursors - GroveStreetOG - Nov 13, 2016 I'm making a paint game and I want to make it so that when the user clicks on for example the button to draw a square, there will be a small square icon in replacement of the cursor. The built in cursors for the MouseActionListener interface don't really have what I'm looking for is there a way I can make my own and use it? Possibly provide an example of creating one if there is? 🤝 * - M G T - Nov 19, 2016 http://stackoverflow.com/questions/4274606/how-to-change-cursor-icon-in-java That is what i use for my program frame.setCursor(null); to change back to normal * - GroveStreetOG - Nov 21, 2016 Thanks for the suggestion but we finished up with that project. I'll be able to use it for future reference though ty |