private Dimension getMinimumScrollbarSize(Component comp) {
		Dimension size = comp.getMinimumSize();
		try {
			Class scrollbarClass = comp.getClass();
			Method getOrientation = scrollbarClass.getMethod("getOrientation", new Class[0]);
			int orientation = ((Integer) getOrientation.invoke(comp, new Object[0])).intValue();
			if (orientation == Scrollbar.HORIZONTAL) {
				size.width = Math.max(size.width, MINIMUM_SCROLLBAR_SIZE);
			} else {
				size.height = Math.max(size.height, MINIMUM_SCROLLBAR_SIZE);
			}
		} catch (Exception ex) {
			throw new ErrorException(ex);
		}
		return size;
	}