PDA

View Full Version : Beginner Java help with a GUI



jshhh890
March 1st, 2011, 04:14 PM
I am relatively new to programming and I need help with a lab I am working on. We are creating a GUI for the "WhackAMole" arcade game, and part of the assignment is to change the cursor into a hammer when the mouse is over a mole. I cannot for the life of me figure out all the stuff on the JavaDoc library. Any help would be appreciated. Thanks!

PaulM1985
March 1st, 2011, 04:50 PM
This link will help you create custom cursors.

http://www.ehow.com/how_6694683_create-custom-cursor-java.html

Now you will need to look into the mouse moved events and check if the position returned is over the position of your mole.

Paul