Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Monday 25 February 2013

JAVA PROGRAM: TO PRINT TEXT IN TEXTAREA


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

We have used NetBeans IDE 7.2.1. To download it visit www.netbeans.org

For any query or suggestion please comment below...

No comments:

Post a Comment