if (event.isOfType(TreeViewEvent.Type.ROW_ACTIVATED)) { TreePath[] tp = list.getSelection().getSelectedRows(); if (tp.length == 1) { TreeIter item = ls.getIter(tp[0].toString()); System.out.println("string selected: " + ls.getValue(item, ColData)); } }
	public void treeViewEvent(TreeViewEvent event) {		if (event.isOfType(TreeViewEvent.Type.ROW_ACTIVATED)) {			TreePath[] tp = list.getSelection().getSelectedRows();			if (tp.length == 1) {				TreeIter item = ls.getIter(tp[0].toString());				System.out.println("string selected: " + ls.getValue(item, ColData));			}		}	}