if (null != vScrollbar) {
if (vScrollbar != null) {
    private void checkScrollBounds() {        if (scroll.x < 0) {            scroll.x = 0;        } else if (scroll.x > (boardSize.width - view.width)) {            scroll.x = (boardSize.width - view.width);        }        if (scroll.y < 0) {            scroll.y = 0;        } else if (scroll.y > (boardSize.height - view.height)) {            scroll.y = (boardSize.height - view.height);        }        // Update our scroll bars.        if (null != vScrollbar) {            vScrollbar.setValue(scroll.y);        }        if (null != hScrollbar) {            hScrollbar.setValue(scroll.x);        }    }