if ("no".equals(selectionMode.getSelectedItem()))
if ("no".equals(selectionMode.getSelectedItem())) {
                public void itemStateChanged(ItemEvent e) {                    if ("no".equals(selectionMode.getSelectedItem()))                        tree.getSelectionModel().setSelectionMode(STree.NO_SELECTION);                    else if ("single".equals(selectionMode.getSelectedItem()))                        tree.getSelectionModel().setSelectionMode(STree.SINGLE_SELECTION);                    else if ("multiple".equals(selectionMode.getSelectedItem()))                        tree.getSelectionModel().setSelectionMode(STree.MULTIPLE_SELECTION);                }