Questions tagged [treemodel]

109 questions
1
vote
0 answers

Use check_call to convert dot to png, get no such file or permission denied

I'm using check_call(['dot', '-Tpng', 'tree.dot', '-o', 'tree.png']) but I got FileNotFoundError: [Errno 2] No such file or directory: 'dot' When I specify the path to replace the 'dot' I got PermissionError: [Errno 13] Permission denied I…
Tyree Wang
  • 11
  • 1
1
vote
1 answer

JTree is displaying nodes that should be expandable as leaf nodes

I have this project where my program fetches files from a operating system disk image and stores their details in a database and another functionality fetches the files from the database and stores them in a List (my own object type) and is supposed…
Aayush Pathak
  • 159
  • 11
1
vote
1 answer

Integrating jsTree with Treemodel

I am a complete javascript newbie, how can I integrate, jsTree on the front end, with the backend services in node.js. The backend is written using the Treemodel library (http://jnuno.com/tree-model-js/). With additional functions such as function…
1
vote
1 answer

How to add ListStore inside ListStore in Rust's gtk-rs bindings?

I want to create program with a TreeView containing ComboBoxes using the gtk-rs bindings. In order to have data for the GtkCellRendererCombo, I need a GtkTreeModel *, but I don't know how to add a ListStore inside a ListStore. For now I have only a…
wm_obsd
  • 43
  • 6
1
vote
1 answer

Should I 'destroy' a liststore (model of treeview) when destroy treeview?

I'm programming python + Gtk3. I have a Gtk.TreeView with a Gtk.ListStore as model. At some point of the program I need to destroy the treeview in order to put a fresh one on it's place. However I don't know what happens with the model. Should I…
1
vote
1 answer

Asynchronously tree traversal using tree-model-js

May I know is there a way to walk/traverse tree asynchronously using tree-model-js. There is a walk function in tree-model-js. However, it seems it is not an aync function. Basically, I have some aync processes to process each node of the tree. I…
Nick Tang
  • 11
  • 2
1
vote
1 answer

Binding HashMap to MutableTreeNode

I need to bind a Hashmap to a MutableTreeNode so that I can display that in a JTree. I have the following code: static Map form = new LinkedHashMap(); I guess this is how I need to implement MutableTreeNode. I just…
Omid
  • 823
  • 1
  • 11
  • 31
1
vote
2 answers

JTree is badly blurred when scrolling

I have a JTree inside a JScrollPane, and when I use the scrollbar the tree gets all blurred up, as you can see in the image below. It gets back to normal if I do something to make it repaint, like minimize and restore the window, or click in the…
Gigatron
  • 1,995
  • 6
  • 20
  • 27
1
vote
1 answer

How to build a Serializable TreeModel containing files and subdirectories?

I'm trying to build a TreeModel for a Java application. Since I need to serialize it and send it via an ObjectOutputStream, I'm trying to use the DefaultTreeModel because it implements the Serializable interface. Ok, I think I'm fine with that. My…
thibaultcha
  • 1,320
  • 2
  • 15
  • 27
1
vote
1 answer

How to change or view gtk.ListStore flags in Python

I have a TreeView connected with a ListStore object. One of the function calls ListStore.get_iter_next(). Since the ListStore data changes every time, I am doubtful that iter is causing a memory leak. I need to check if the ListStore has…
Kashif
  • 1,238
  • 10
  • 15
1
vote
2 answers

JTree custom model adding/removing/changing nodes

I got such a trouble. I have an overlay database structure and use JTree to display the items. Here's my simplified view of model: public class MenuTreeModel implements TreeModel { private MenuList ml; public MenuTreeModel( MenuList ml ) { …
Yurgen
  • 123
  • 1
  • 13
1
vote
0 answers

Filesystem JTree using Java 7's NIO

I've seen plenty of examples of JTrees that display the file system using the standard Java File API. Are there any example implementations of a JTree (maybe using a custom TreeModel) that use the new NIO apis from Java 7? I'd love to see an example…
Andy
  • 5,108
  • 3
  • 26
  • 37
1
vote
0 answers

JTree not updating (need clarification)

Here is the problem: I have a main panel, that has 3 sub panel containing an status update area, projectlistTree panel and a analysis panel. The projectlist tree panel needs two clases: One a panel clas that contains the user interface…
Balaram26
  • 1,349
  • 3
  • 15
  • 32
1
vote
1 answer

How can I show a flat representation of a GtkTreeStore in a GtkTreeView?

I have a TreeStore with objects that I view and manipulate through a GtkTreeView/GtkTreeModel setup. I also have a TreeView showing a TreeModelSort of the TreeStore, which I use for sorting on columns like name and date. The problem is, that the…
john
  • 23
  • 2
1
vote
2 answers

Create a JTree from a list of dot-delimited Strings

I am creating an editor application, and I am having a problem with my menus. In the object menu, I want to display several objects types using a JTree. These object types are dynamically registered by plugins and follow this…