// Calculation of Amount
if (jRadioButton1.isSelected())
jTextField3.setText("" + 1000*
Integer.parseInt(jTextField2.getText()));
if (jRadioButton2.isSelected()
jTextField3.setText("" + 800*
Integer.parseInt(jTextField2.getText()));
if (jRadioButton3.isSelected())
jTextField3.setText("" + 700*
Integer.parseInt(jTextField2.getText()));
//Calculation of Guide Charges
if(jCheckBox1.isSelected())
jTextField4.setText("" + 500*
Integer.parseInt(jTextField2.getText()));
//Total Amount
jTextField5.setText("" +
(Integer.parseInt(jTextField3.getText())+
Integer.parseInt(jTextField4.getText())));
(ii) When ‘CLEAR’ button is clicked, all the textfields and checkboxes should be cleared.
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText(“”);
jCheckBox1.setSelected(false);
(iii) When ‘CLOSE’ button is clicked, the application should close. System.exit(0);