Consider the class RandomColorPanel, as given. Add an inner class to RandomColorPanel that implements the interface MouseListener. Each time a user clicks the mouse on an object of RandomColorPanel, a square whose upper left corner is at the mouse click should appear in a random color.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here