// we process outside of the normal processMouseClick.
if (event.getButton() == MouseEvent.BUTTON2) {
// Reset the current tool if line is being drawn. Doesn't make sense to keep line
// drawing enabled while colour is being chosen.
if (editStatus.isLineBeingDrawn()) {
editStatus.resetTool();
}
Point eventPoint = event.getLocationOnScreen();
Point dialogPoint = new Point(eventPoint.x - 34, eventPoint.y - 34);