313314315316317318319320321322323
while (it.hasNext() && !found) { SimpleButton btn = it.next(); if (btn.getLocation().equals(location)) { logger.debug("testPressButton(), found button to test"); found = true; btn.pressButton(); } } } }
144145146147148149150151152153154
btnGUI.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.out.println("A button has been clicked : "+btn.getName()); btn.pressButton(); } }); panel.add(btnGUI); buttonsColumn.add(panel);
432433434435436437438439440441442
if (nextButton != null) { application.invokeLater(new Runnable() { @Override public void run() { if (nextButton.isVisible() && nextButton.isEnabled()) { nextButton.pressButton(); } } }); } }