Question: Give an example of a program that creates a Swing based GUI with at least one button, one group of radio-buttons and several textfields. Some
Give an example of a program that creates a Swing based GUI with at least one button, one group of radio-buttons and several textfields. Some of the textfields should be for input and others for output. Make the output textfields uneditable. When the button is clicked, the input fields should be read, some calculation will be performed and the result will be displayed in the output textfield(s).
For example, the GUI may have an input textfield for circle radius, an output textfiled for result, a button Calculate and a group of two radio buttons: Area and Perimeter. When Calculate button is clicked, the radius value is read and the area or perimeter is calculated and displayed in the result based on the active radio-button.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
