}
public void testHorizontal(TestHarness harness)
{
MyBasicScrollBarUI ui = new MyBasicScrollBarUI();
JScrollBar scrollBar = new JScrollBar(JScrollBar.HORIZONTAL);
scrollBar.setUI(ui);
scrollBar.setBounds(0, 0, 100, 20);
ui.layoutContainer(scrollBar);
harness.check(ui.getTrackBounds(), new Rectangle(16, 0, 68, 20));
harness.check(ui.getThumbBounds(), new Rectangle(16, 0, 8, 20));
scrollBar.setBounds(40, 50, 250, 37);
ui.layoutContainer(scrollBar);
harness.check(ui.getTrackBounds(), new Rectangle(16, 0, 218, 37));
harness.check(ui.getThumbBounds(), new Rectangle(16, 0, 21, 37));
}