Oh yeah, that was substantially better:
public void mouseEntered(MouseEvent e)
{
((Square)e.getSource()).enter();
}
Thank you again Norm :)!
Type: Posts; User: MXA92
Oh yeah, that was substantially better:
public void mouseEntered(MouseEvent e)
{
((Square)e.getSource()).enter();
}
Thank you again Norm :)!
EDIT: CODE REMOVED
Hmm, I'm not quite sure what you mean.
I need the mouse listener to call the enter() method for the specific Square object that has called it :/
I've worked out I need the row and column of the square the mouse is on (using e.getX() and e.getY() somehow?) and then I can just call the enter() method.
ie. squares[1][2].enter() changes the...
EDIT: Code Removed
EDIT: CODE REMOVED