l.add(0, parent);
return new TreePath( l.toArray(new Node[l.size()]) );
}
public static void main(String[] args) {
DemoDictionary dict = new DemoDictionary();
DictionaryPanel panel = new DictionaryPanel(dict);
JOptionPane pane = new JOptionPane(panel);
JDialog dia = pane.createDialog((JFrame)null, "Title");
dia.show();
System.exit(0);