Robot rob = new Robot();
int x = point.X + (rect.Width / 2)+50;
int y = point.Y + (rect.Height / 2)+50;
rob.mouseMove(x, y);
System.out.println("Press Button");
rob.mousePress(InputEvent.BUTTON3_MASK);
System.out.println("Release Button");
rob.mouseRelease(InputEvent.BUTTON3_MASK);
System.out.println("done");
System.out.println("warte");
shortWait();