currentDeltaPoint.setLocation(0,0); if (deltaRelative != null) { absPoint.setLocation(deltaRelative.getWidth() >> 1, deltaRelative.getHeight() >> 1); }
    public void mouseReleased(MouseEvent arg0) {        if (!enabled) return;        switch (arg0.getButton()) {        case MouseEvent.BUTTON1:            buttons.set(0, false);            break;        case MouseEvent.BUTTON2:            buttons.set(1, false);            break;        case MouseEvent.BUTTON3:            buttons.set(2, false);            break;        }        swingEvents.add( arg0 );    }