Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Action
- private void total() {
- int total = 0;
- total+=Integer.parseInt(jTextField1.getText()); // String to Int
- total+=Integer.parseInt(jTextField2.getText());
- total+=Integer.parseInt(jTextField3.getText());
- jTextField4.setText(Integer.toString(total)); // Int to String
- }
Advertisement
Add Comment
Please, Sign In to add comment