bugList.add(Strings.get("Bug2"));
}
}
};
window.addMouseListener(ma);
Robot robot = new Robot();
robot.click(window, x, y, mask);
robot.waitForIdle();
window.toFront();
// Bogus acceleration may mean the event goes entirely
// elsewhere
if (!gotBug1Event) {
bugList.add(0, Strings.get("Bug1"));
}
window.removeMouseListener(ma);
}
else if (Platform.isOSX()
&& Platform.JAVA_VERSION < 0x1430) {
Log.debug("Checking for OSX bugs");
final int mask = InputEvent.BUTTON2_MASK;
MouseAdapter ma = new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if ((e.getModifiers() & mask) != mask) {
bugList.add(Strings.get("robot.bug3"));
}
}
};
window.addMouseListener(ma);
Robot robot = new Robot();
robot.click(window, x, y, mask);
robot.waitForIdle();
window.removeMouseListener(ma);
}
}
return (String[])bugList.toArray(new String[bugList.size()]);
}