else if ("multiple".equals(selectionMode.getSelectedItem())) { tree.getSelectionModel().setSelectionMode(STree.MULTIPLE_SELECTION); tree.setSelectionModel(SDefaultTreeSelectionModel.MULTIPLE_SELECTION_MODEL);
else if (SELECTION_MODES[2].equals(selectionMode.getSelectedItem())) { tree.getSelectionModel().setSelectionMode(STree.DISCONTIGUOUS_TREE_SELECTION);
                public void itemStateChanged(ItemEvent e) {                    if ("no".equals(selectionMode.getSelectedItem())) {                        tree.getSelectionModel().setSelectionMode(STree.NO_SELECTION);                        tree.setSelectionModel(SDefaultTreeSelectionModel.NO_SELECTION_MODEL);                    }                    else if ("single".equals(selectionMode.getSelectedItem())) {                        tree.getSelectionModel().setSelectionMode(STree.SINGLE_SELECTION);                        tree.setSelectionModel(SDefaultTreeSelectionModel.SINGLE_SELECTION_MODEL);                    }                    else if ("multiple".equals(selectionMode.getSelectedItem())) {                        tree.getSelectionModel().setSelectionMode(STree.MULTIPLE_SELECTION);                        tree.setSelectionModel(SDefaultTreeSelectionModel.MULTIPLE_SELECTION_MODEL);                    }                }