Write a Java graphics program that draws lines, rectangles, circles and ovals with mouse using the "rubber banding technique".
It will provide a color menu with black, red, green and blue, as well as a shape menu with line, rectangle, circle, and oval symbols on it.
The program will use the left button on the mouse to plot these objects:let p1 be the mouse location where the mouse was pressed and p2 be the location
where it was released. For a line, p1 is the first end-point and p2 is the second end-point of the line segment; for rectangle,
p1 and p2 are any two diagonal points of the rectangle; for circle, p1 is the center of the circle and p2 is a point on the circumference of the circle;
for oval, p1 and p2 are any two diagonal points of the base rectangle used to draw the oval. The program will also implement the right button on the mouse.
It will do the same job as the left one except drawing filled rectangles, circles, and ovals. (For lines, both left and right works in exactly the same way.
12 freelancers estão ofertando em média $62 para esse trabalho
Hello...........message me ...........i have very good experience in java..........i can get your work done very quickly..............waiting for your response...........thanks & regards