560561562563564565566567568569570
public void mouseClicked(MouseEvent e) { if (lastImageDimension == null) return; Button pressedButton = null; switch (e.getButton()) { case MouseEvent.BUTTON1: pressedButton = Button.LEFT; break;