Just an alternative: Use a MouseListener and its corresponding mouseEntered/mouseExited methods to set a boolean flag - then check this flag when you paint....and/or use a MouseMotionListener to get...
Type: Posts; User: copeg
Just an alternative: Use a MouseListener and its corresponding mouseEntered/mouseExited methods to set a boolean flag - then check this flag when you paint....and/or use a MouseMotionListener to get...
Care to share your solution? A MouseMotionListener should allow you to follow the mouse movement appropriately, and you can repaint as needed.