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");
Written and compiled by Réal Gagnon ©1998-2012
[ home ]