5

Is beans binding for JTrees currently supported? I've found this forum post from 2008, but I didn't know if there was any development.

If it does exist does anyone know where i might find some documentation on it?

divibisan
  • 11,659
  • 11
  • 40
  • 58
Intern87
  • 469
  • 1
  • 6
  • 18
  • not directly about JTree, maybe this tutorial http://netbeans.org/kb/docs/java/gui-binding.html – mKorbel Aug 10 '11 at 13:25
  • I've used this on other parts of my GUI, mainly using it for validation but I cant find anything on binding JTrees. – Intern87 Aug 10 '11 at 13:36
  • I never used this Framework, but JTree would be similair to the JTable, just structure is little bit complicated with Nodes for JTree – mKorbel Aug 10 '11 at 13:40
  • I've found support for JTable with binding, but it would be useless in the context I am using it. Doesn't matter I'll find another way, I don't think it exists. – Intern87 Aug 10 '11 at 14:00
  • Further update on this, I've stopped using beans binding all together now. its not supported in JDK7, I've turned to JGoodies I will bind the Tree Model to the Presentation model and try it that way. – Intern87 Aug 19 '11 at 09:36

1 Answers1

0

There is no beans binding, but the closest thing I know of would be NetBeans Nodes API with Explorer API. Using BeanNode and BeanTreeView ordinary Java Beans would be quite easy to bind to a JTree. This http://platform.netbeans.org/tutorials/nbm-nodesapi2.html tutorial goes much deeper, but the basic idea should be there. Depending on your use case this might not be that useful, but I find Node much easier to work with than pure TreeModel.

tPeltola
  • 21
  • 2