Single selection in a JTreeTag(s): Swing
myJTree.getSelectionModel(). setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
[JDK1.2] KeyStroke ks = KeyStroke.getKeyStroke("ctrl A"); tree.unregisterKeyboardAction(ks); [JDK1.3+] KeyStroke ks = KeyStroke.getKeyStroke("ctrl A"); tree.getInputMap().put(ks, "none");
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com