I have a JTree in my swing app, to display a long list of data (int tree mode).
the issue is that TreeModel loading all items during initialization and I don't need to load them all. in one screen only 100 of them are displayable so no point to load thousands of data to show only 100 of them in one screen.
Question: is there any way to do kind of lazy initialization in TreeModel and retrieve data whenever needed ?
Thanks All
TreeWillExpandListener See for example this