int x = aComp.getLocationOnScreen().X + (aComp.getBounds().Width / 2);
int y = aComp.getLocationOnScreen().Y + (aComp.getBounds().Height / 2);
System.out.println("try to double click mouse button on x/y " + x + "/" + y);
rob.mouseMove(x, y);
rob.mousePress(InputEvent.BUTTON1_MASK);
rob.mouseRelease(InputEvent.BUTTON1_MASK);
utils.shortWait(100);
rob.mousePress(InputEvent.BUTTON1_MASK);
rob.mouseRelease(InputEvent.BUTTON1_MASK);
} catch (java.awt.AWTException e) {
System.out.println("couldn't press mouse button");