Question: Use JAVA SWING and AWT to write an application that does the following: Creates a frame and adds a panel as the drawing canvas. When
Use JAVA SWING and AWT to write an application that does the following:
Creates a frame and adds a panel as the drawing canvas.
When the user clicks on any specific location on the panel, a separate window pops up and asks the user for the radius of the circle to be drawn.
Once the user provides the radius of the circle, and clicks ok the circle of the specified radius is draw on the canvas with the center of the circle at the location of the mouse click in the last step.
Run your program: take multiple screenshots to demonstrate the flow of your circle drawing program. Draw at least circles at various locations on the panel.
Insert both your source code and your run result in the HTML editor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
