viewport = new JViewport();
viewport.setView(container);
switch (orientation) {
case JSplitPane.VERTICAL_SPLIT:
setLayout(new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {0, TableLayout.FILL, 0}}));
add(renderArrow("U", "arrowUp"), "0,0,c,c");
add(viewport, "0,1,FULL,FULL");
add(renderArrow("D", "arrowDown"), "0,2,c,c");
break;
case JSplitPane.HORIZONTAL_SPLIT:
setLayout(new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {TableLayout.FILL}}));
add(renderArrow("U", "arrowLeft"), "0,0,c,c");
add(viewport, "1,0,FULL,FULL");
add(renderArrow("D", "arrowRight"), "2,0,c,c");
break;