public void mouseReleased(int modifiers, Point position) {
swingWait();
FireableMouseClickEvent event = new FireableMouseClickEvent(getComponent(), 0,
(modifiers & InputEvent.BUTTON3_DOWN_MASK) != 0);
event.fireMouseReleased(position, 0, modifiers);
swingWait();
}
/**
* Utility function. Wraps SwingUtilities.invokeAndWait.