notebookTree.setModel(treeModel);
notebookTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
}
private void addNewEmptyNote(DefaultMutableTreeNode notesSuiteNode, NotesSuite suite, User user) {
Note blankNote = new Note(user, suite, "[new note]", "Your content here");
DefaultMutableTreeNode newNoteNode = new DefaultMutableTreeNode("[add note]", false);
newNoteNode.setUserObject(blankNote);
notesSuiteNode.add(newNoteNode);
}