viewport.setView(container);
viewport.addMouseWheelListener(new WheelScroller());
switch (orientation) {
case JSplitPane.VERTICAL_SPLIT:
toolWindowScrollBar.setLayout(toolWindowScrollBarLayout = new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {0, 1, TableLayout.FILL, 1, 0}}));
toolWindowScrollBar.add(renderArrow(Direction.LEFT, MyDoggyKeySpace.TOOL_SCROLL_BAR_UP), "0,0,c,c");
toolWindowScrollBar.add(viewport, "0,2,FULL,FULL");
toolWindowScrollBar.add(renderArrow(Direction.RIGHT, MyDoggyKeySpace.TOOL_SCROLL_BAR_DOWN), "0,4,c,c");
break;
case JSplitPane.HORIZONTAL_SPLIT:
toolWindowScrollBar.setLayout(toolWindowScrollBarLayout = new ExtendedTableLayout(new double[][]{{0, 1, TableLayout.FILL, 1, 0}, {TableLayout.FILL}}));
toolWindowScrollBar.add(renderArrow(Direction.LEFT, MyDoggyKeySpace.TOOL_SCROLL_BAR_LEFT), "0,0,c,c");
toolWindowScrollBar.add(viewport, "2,0,FULL,FULL");
toolWindowScrollBar.add(renderArrow(Direction.RIGHT, MyDoggyKeySpace.TOOL_SCROLL_BAR_RIGHT), "4,0,c,c");
break;