Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent ae) {
- try {
- for (String s : commands) {
- Method m = Robot.class.getMethod(s);
- m.invoke(null);
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
Add Comment
Please, Sign In to add comment