Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void b1click() {
- berechnen1.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent a) {
- // TODO Auto-generated method stub
- int parse = Integer.parseInt(A0.getText());
- if(parse >= 14) {
- JOptionPane.showMessageDialog(null, "It works!");
- } else {
- JOptionPane.showMessageDialog(null, "Bitte benutzen Sie den Punkterechner für unter 14 Jährige!");
- }
- }
- });
- }
Add Comment
Please, Sign In to add comment