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