private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
double x,y,z,re;
x=Double.parseDouble(a.getText());
y=Double.parseDouble(b.getText());
z=Double.parseDouble(c.getText());
re=x+y+z;
r.setText(String.valueOf(re));
}
double x,y,z,re;
x=Double.parseDouble(a.getText());
y=Double.parseDouble(b.getText());
z=Double.parseDouble(c.getText());
re=x+y+z;
r.setText(String.valueOf(re));
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
a.setText("");
b.setText("");
c.setText("");
r.setText("");
}
// TODO add your handling code here:
a.setText("");
b.setText("");
c.setText("");
r.setText("");
}
0 comentarios:
Publicar un comentario