tree.setSelectionModel(SDefaultTreeSelectionModel.MULTIPLE_SELECTION_MODEL); }
                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);                }