Question: Write a program that allows the user to specify a triangle with three mouse presses. After the first mouse press, draw a small dot. After
Write a program that allows the user to specify a triangle with three mouse presses. After the first mouse press, draw a small dot. After the second mouse press, draw a line joining the first two points. After the third mouse press, draw the entire triangle. The fourth mouse press erases the old triangle and starts a new one.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
ANSWER import javaawtGraphics import javaawteventMouseEvent import javaawteventMouseListener import ... View full answer
Get step-by-step solutions from verified subject matter experts
