::Wordless Wednesday ::7:: How To Create Calculator in Netbeans::

10:34 AM



Assalamualaikum all blogger, follower and readers.
Currenly in Java Tutorial Class.
Senyum saja hari ni, paling suka guna Netbeans.
Entry lepas dhira ada cerita sikit pasal java ni.


::How To Create Calculator in Netbeans::

Creating calculator using NetBeans

The code for adding 2 numbers:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
        String numStr1 = jTextField1.getText();
        String numStr2 = jTextField2.getText();

        int num1 = Integer.parseInt(numStr1);
        int num2 = Integer.parseInt(numStr2);
        int total = num1+num2;
        
        jTextField3.setText("" + total); 
}

   Okey,dah tak nama wordless dah ni..
Nanti ada masa free dhira buat tutorial calculator ni ye.. 


You Might Also Like

0 Comment

Greetings and Assalamualaikum...
Sila tinggalkan komen anda di sini..
Will pay a visit back! Thank You

Heart 1

Travel & Beauty Blog

Sponsored