Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void actionPerformed(ActionEvent acao) {
- if(acao.getSource() == subt) {
- double num1 = Double.parseDouble(caixa1.getText());
- double num2 = Double.parseDouble(caixa2.getText());
- double result = num1 - num2;
- resul.setText(""+result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement