Question: CSC255 - Programming IlI Class Activity 4 (Ch. 13 Graphics and Java 2D) Total: 30 pts Write a GUI application that allows the user by

CSC255 - Programming IlI Class Activity 4 (Ch. 13 Graphics and Java 2D) Total: 30 pts Write a GUI application that allows the user by using JSlider class to gather the value of radius (radius is 15, by default) to draw a solid (Light Gray, at the default) color of circle as well as display all information about the circle with black color Need to include (2 pts) title bar: "Using slider to draw a solid circle (Fig 1) 10 pts) Change Color button at the top of the control Panel event handler for showing JColorChooser pre-defined dialog (Fig 2) if the user chooses the different color from the dialog, then the shape will automatically update that color if the user did not choose any color or press Cancel button, the color will be set back to Light Gray the textarea information's textcolor also be changed by that color (by default, the text color is black) o o o o (5 pts) Radius data: The radius value will be changed by the object of JSlider (the number between 0 to 255, set up the default value to 15, the mark label by 50) (10 pts) If the user changes the slider's radius value, the circle also be changed by that radius as well as the information at the text area (3 pts) Display the circle's area and circumference with two decimal places. Uaing aliderto draw-X Change Golor Radius Data: 50 100 150 200 250 Radius: 79 Diameter 158 ra:13605 58 Croumference: 496.37 Fig 1 lg
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
