void updateScrollBar(JScrollBar scroll, int visMin, int visWidth, int viewSize, int offset) {
		if (visMin >= 0 && visMin + visWidth < viewSize) {
			scroll.setEnabled(false);
		} else {
			scroll.setEnabled(true);
			
			int xMin = Math.min(0, (visMin - viewSize / 4));
			int xMax = Math.max(viewSize, visMin + visWidth + viewSize / 4);
			
			scroll.setValues(offset, viewSize, xMin + offset, xMax + offset);
			scroll.setBlockIncrement(Math.max(1, (int) (viewSize * .66)));
			scroll.setUnitIncrement(Math.max(1, (int) (viewSize * .05)));
		}
	}