1. Create a Java application that draws a triangle. The user specifies the position and size of the triangle by positioning and clicking the mouse three times, once for each vertex of the triangle.
2. Using the interface MouseMotionListener, write an application in which a red dot follows the cursor as the mouse moves. You will need the method addMouseMotionListener.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here