There is no beans binding, but the closest thing I know is the NetBeans Node API with the Explorer API. The use BeanNodeand BeanTreeViewthe normal Java beans it would be pretty easy to map to JTree. This http://platform.netbeans.org/tutorials/nbm-nodesapi2.html tutorial goes much deeper, but the main idea should be there. Depending on your use case, this might not be as useful, but I find it easier to work with Node than clean TreeModel.
source
share