Advertisement
gtw7375

efeeff

Sep 25th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public void actionPerformed(ActionEvent acao) {
  2.  
  3. if(acao.getSource() == subt) {
  4.  
  5.  
  6. double num1 = Double.parseDouble(caixa1.getText());
  7. double num2 = Double.parseDouble(caixa2.getText());
  8. double result = num1 - num2;
  9. resul.setText(""+result);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement