Minggu, 28 April 2013

CONTOH APLIKASI GUI SEDERHANA



HASIL TAMPILAN




SOURCE CODE

 private void ConvertButtonActionPerformed(java.awt.event.ActionEvent evt) {                                              
        double fahrenheit = Double.parseDouble(CelciusTextField.getText()) * 1.8 + 32;
     FahrenheitLabel.setText(fahrenheit + " Fahrenheit");

        
    }                                             

    private void exitActionPerformed(java.awt.event.ActionEvent evt) {                                     
       exit.setText("");
       

    }         

0 komentar:

Posting Komentar