CODING OF ACTION BUTTON(jButton1)
String name,address,clas;
int rollno;
name=jTextField1.getText();
clas=jTextField2.getText();
rollno=Integer.parseInt(jTextField3.getText());
address=jTextField4.getText();
jTextArea1.append("Information entered by you:\n\nName: "+name+"\nClass: "+clas+"\nRoll no. "+rollno+"\nAddress: "+address);
CODING OF CLEAR BUTTON(jButton2)
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextArea1.setText("");
CODING OF EXIT BUTTON(jButton3)
System.exit(0);
CODING |
RUNNING |
For any query or suggestion please comment below...
No comments:
Post a Comment