Ejemplo n.º 1
0
 @Override
 public void valueChanged(TreeSelectionEvent event) {
   TreePath path = event.getPath();
   DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();
   if (!node.isLeaf()) {
     return;
   }
   Cursor cursor = hydc3View.getCursor();
   hydc3View.setCursor(new Cursor(Cursor.WAIT_CURSOR));
   String s = (String) node.getUserObject();
   //		int partsStrokes = Integer.parseInt(s.split(" ")[0]);
   String sCharacters = s.split(" ")[2];
   searchWithRadical(sCharacters);
   hydc3View.setCursor(cursor);
 }