private final void checkSliderPosition()
			{
				if (isVertical)
					{
						if (slider.getYD() < y + scrollBarThickness)
							slider.setY(y + scrollBarThickness);
						else if (slider.getYD() + slider.getHeightD() > y + height - scrollBarThickness)
							slider.setY(y + height - slider.getHeightD() - scrollBarThickness);
						
						if (isVertical)// Make slider gradient vertical too
							{
								GradientPaint g1 = slider.gradientUp;
								GradientPaint g2 = slider.gradientDown;
								slider.gradientUp = new GradientPaint(slider.getXI() + (slider.getWidthI() / 3), slider.getYI(), g1.getColor1(), slider.getXI() + slider.getWidthI() + (slider.getWidthI() / 3),
										slider.getYI(), g1.getColor2(), g1.isCyclic());
								slider.gradientDown = new GradientPaint(slider.getXI() + (slider.getWidthI() / 3), slider.getYI(), g2.getColor1(), slider.getXI() + slider.getWidthI() + (slider.getWidthI() / 3),
										slider.getYI(), g2.getColor2(), g2.isCyclic());
							}
					}
				else
					{
						if (slider.getXD() < x + scrollBarThickness)
							slider.setX(x + scrollBarThickness);
						else if (slider.getXD() + slider.getWidthD() > x + width - scrollBarThickness)
							slider.setX(x + width - slider.getWidthD() - scrollBarThickness);
					}
			}