CODING OF CALCULATE AREA BUTTON(jButton1)
double area,r;r=Double.parseDouble(jTextField1.getText());
area=3.14*r*r;
jTextField2.setText(" "+area);
CODING OF CLEAR BUTTON(jButton2)
jTextField1.setText(" ");jTextField2.setText(" ");
CODING OF EXIT BUTTON(jButton3)
System.exit(0);Java Program Coding |
Java Program Running |
For any query or suggestion please comment below...
No comments:
Post a Comment