2009-07-27 5 views

답변

1

는 내가 가장 간단한 방법은 createKeyListener 방법을 대체 할 생각 :

tree.setUI(
     new BasicTreeUI(){ 
      protected KeyListener createKeyListener(){ return null; } 
     } 
    ); 
0

이 JTree에 대해 잘 몰라,하지만 당신은 사용자 정의 할 수있는 방법을 제공합니다

JTree tree = new JTree(...) 
{ 
    public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias) 
    { 
     return getLeadSelectionPath(); 
    } 
};