}
            public void itemStateChanged(ItemEvent e) {                if ("Top".equals(layout.getSelectedItem())) {                    scrollbar.setLayoutMode(Adjustable.HORIZONTAL);                    scroller.setHorizontalScrollBar(scrollbar,                            SBorderLayout.NORTH);                } else if ("Bottom".equals(layout.getSelectedItem())) {                    scrollbar.setLayoutMode(Adjustable.HORIZONTAL);                    scroller.setHorizontalScrollBar(scrollbar,                            SBorderLayout.SOUTH);                } else if ("Left".equals(layout.getSelectedItem())) {                    scrollbar.setLayoutMode(Adjustable.VERTICAL);                    scroller.setHorizontalScrollBar(scrollbar,                            SBorderLayout.WEST);                } else if ("Right".equals(layout.getSelectedItem())) {                    scrollbar.setLayoutMode(Adjustable.VERTICAL);                    scroller.setHorizontalScrollBar(scrollbar,                            SBorderLayout.EAST);                }            }