125126127128129130131132133134135
jic.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { Point absPoint = jic.toOriginalImageCoords(e.getX(), e .getY()); jeic.addZoomBubble(absPoint.x, absPoint.y, 80); } } });