DefaultTreeModel model = (DefaultTreeModel)getModel();
model.reload();
Call this everytime your underlying data changes and the view will update itself automatically. This is mainly for myself, because I have to look it up again every time I need it...
Keine Kommentare:
Kommentar veröffentlichen