@Override public void onClick(NativeMouseEvent nme) { if (!robot.isPlaying()) { return; } Point click = new Point(nme.getX(), nme.getY()); Log.d("onClick() in HumanTableInteractor " + click); if (clickRectangleHolder.getRectangle().contains(click)) { Log.d("Click on action button: " + click); Log.d("Needed rectangle: " + clickRectangleHolder.getRectangle()); frame.setVisible(false); synchronized (lock) { lock.notifyAll(); } } else if (repeatRectangleHolder.getRectangle().contains(click)) { Log.d("Click for repeat: " + click); } Log.d("onClick() in HumanActionExecutor end!"); }