public final void mouseReleased(MouseEvent event) {
        int eventButton = event.getButton();

        if (eventButton == MouseEvent.BUTTON1) {
            mouseButton1Pressed = false;
        } else if (eventButton == MouseEvent.BUTTON2) {
            mouseButton2Pressed = false;
        } else if (eventButton == MouseEvent.BUTTON3) {
            mouseButton3Pressed = false;
        }
        
        // Check to see if the mouse release can be interpretated as a click
        if (Math.abs(event.getX() - mousePressXLocation) < mouseClickTolerance 
                && Math.abs(event.getY() - mousePressYLocation) < mouseClickTolerance) {
            mouseClicked(event);
        }
    }