treemodel Questions

3

I am working with JTree. I would like to know what is best the way to know which nodes are expanded in a JTree so as to save its state (i.e. save all expanded paths). So that if I call model.reloa...
Jesu asked 7/10, 2010 at 5:33

4

Solved

I need to clone a tree I made using TreeModel.js. What I exactly need to do is duplicating it, make changes to it and check if the number of nodes decreased. If it did, revert to the original tree....
Insufficiency asked 15/12, 2014 at 9:58

2

Solved

Basically I edit an attribute private string status="OK" in the UserObject() of a DefaultTreeNode(). I have a CustomRenderer which implements DefaultCellRenderer, which sets the Icon by rendering ...
Fundy asked 2/12, 2011 at 1:58

1

Solved

I have a very basic JTree. As I am on a rush, I'd prefer not to use TreeModel if it is not needed. I wrote a SSCCE to expose the problem: Sometimes I add a node. Other times I remove them. When I ...
Algophobia asked 28/10, 2011 at 11:52

1

Solved

I would like to have a way to display the contents of an XML file in a JTree. I have already accomplished this using DOM, by implementing a custom TreeModel (and TreeCellRenderer). However it is ve...
Yearwood asked 6/1, 2010 at 8:49
1

© 2022 - 2024 — McMap. All rights reserved.