Questions tagged [treemodel]
109 questions
0
votes
1 answer
QtPropertyBrowser / QTreeModel crash when cleared
last few days I'm trying to solve this strange crash which occurs only on OS X 10.10. I have slightly modified QtTreePropertyBrowser with buttons inside the property rows:
(source: inventic.eu)
These buttons emits signals when clicked and some…

Ludek Vodicka
- 1,610
- 1
- 18
- 33
0
votes
1 answer
Out of Memory when parsing using treemodel-js
I am using treemodel-js library for my program. When dealing with large json data file, my program crash throwing FATAL ERROR: JS Allocation failed - process out of memory.
when I am debugging my program, I found that execution of this line "var…

Nick Tang
- 11
- 2
0
votes
2 answers
How to enable the component generated HTML/CSS in wicket
I have tried the Tree based menu in wicket ,
I have used the same code as mentioned below link to create a menu.
http://www.wicket-library.com/wicket-examples/nested/?0
While deploying the same code into our server ,
The +,- symbol is not…

Ranjithkumar
- 101
- 2
- 14
0
votes
1 answer
Removing node from JSF TreeModel tree?
I have faced some problems with removing node from JSF TreeModel tree. Is it possible to somehow remove node from TreeModel object?
Please see snippet below:
TreeModel treeModel = getModel();
for (int j = 0; j < treeModel.getRowCount(); j++) {
…

user1772574
- 68
- 1
- 11
0
votes
0 answers
Slow TreeModel issue
I'm developing an application that has a File Tree to the side of the main window and it works fine for folders that don't contain a lot of files, but it gets a bit slow otherwise. Here's the model code:
public class FileTreeModel implements…

user2711115
- 457
- 3
- 18
0
votes
1 answer
Dynamic initialization of JTree
i've been banging my head against a brick wall for days when it comes to JTree!
I want to create a JTree which gets its content dynamically at run time, from mp3 tags. So far so good, except im having a massive headache when it comes to populating…

Dave0504
- 1,057
- 11
- 30
0
votes
0 answers
Updating the JTree (with custom TreeModel) after deleting a node
I read a lot of articles regarding this problem but I was not able to make head no tail of them.
My Problem:
I implemented an custom TreeModel (which implements the interface "TreeModel") and defined the methods like getRoot(), isLeaf() etc. This…
0
votes
2 answers
Converting JTree to Xml in java
I am working on JTree and i need to Create XML file of Jtree so is there any good way to convert it? I am using JTree in java.
I just need to convert it and i have Checkbox as node into the Tree and i have used render for it. and when submit call i…

Kishan Bheemajiyani
- 3,429
- 5
- 34
- 68
0
votes
1 answer
TreeModel creation
I have some questions regarding a treemodel in Java.
For the last 13 weeks in class we've been developing a contact manager. This contact manager has various components: a contact can either be a business contact or personal contact, and each has…

drocktapiff
- 117
- 3
- 11
0
votes
1 answer
How to make some selected items as checked on load in jstree. (selected = "selected" not working)
In MVC 4 i use jstree. In create operation I have not problem. But in Edit operation, I set true value to some items of treemodel. models are like:
public class RecursiveObject
{
public string data { get; set; }
public Int64 id…

Jeyhun Rahimov
- 3,769
- 6
- 47
- 90
0
votes
2 answers
Using Java TreeModel
I know that this question has been asked here: Java tree data-structure?
But what is the best practice in implementing a tree in Java? The second most voted answer in the question linked above mentions TreeModel, but in the comments someone says…

John
- 3,037
- 8
- 36
- 68
0
votes
2 answers
TreeModel backed by Lists
I want to build a TreeModel from some Lists that contain the source data. Now, there's an utility class called DynamicUtilTreeNode that can be used to build trees from arrays, Vectors and Hashtables, but... not from Lists?! Of course I could use the…

Joonas Pulakka
- 36,252
- 29
- 106
- 169
0
votes
2 answers
How to let Qt Tree model work with QSet?
I want to build a tree with items which are always automatically sorted under a tree node when adding, renaming, and doing other operation. std::set seems a good candidates for my data container. However, it seems Qt tree favors vectors or QList (a…

user1899020
- 13,167
- 21
- 79
- 154
0
votes
1 answer
How can I get the filesystem path for a JTree root node?
I noticed in the following code
DefaultTreeModel treemodel = new DefaultTreeModel();
TreeNode root = treeModel.getRoot();
The problems is that root value is "root" not the path to the file on the file system.
What I would expect is something like…

tuck
- 452
- 5
- 15
0
votes
3 answers
Easiest way to clone a whole JTree/TreeModel?
Do i really have to implement the deep-clone myself or are there any library methods to get a deep clone of an JTree or it's TreeModel?

Sven Eppler
- 1,646
- 1
- 15
- 26