Questions tagged [jtreetable]

JTreeTable is a Java Swing component that combines tree and table capabilities in one. It is an extension of the standard Swing library. One of implementations is available from Swing Labs, some other may exist.

JTreeTable is a Java Swing component that combines tree and table capabilities in one. It is an extension of the standard library. One of implementations was available from Swing Labs, other may exist.

Source code on how to just JTreeTable on the base of the standard Swing (combining Table and JTree) can be found here.

46 questions
0
votes
3 answers

Deleting node childs of a Java JTree structure

I have a ftp program that retrieve folder data each time expanded. It does this by using a model like this: private void FilesTreeTreeExpanded(javax.swing.event.TreeExpansionEvent evt) { String path = new String(""); …
ShirazITCo
  • 1,041
  • 6
  • 23
  • 38
0
votes
0 answers

Jtable with color and columns combined- merge columns

I have a table with combined columns for all the names of a company's accounts (see figure). I want to configure the jtable to show the data as in the image. I have read about the table tree but I have not achieved the format of the figure.
0
votes
1 answer

JTable is resizing my column widths

I have created a JTreeTable where the TreeCellRenderer is a JTable. This allows me to have different TableColumnModels for each row. Siblings of the JTree share a TableColumnModel. It works great. I can select a row and show a different set of…
Mark
  • 911
  • 13
  • 30
0
votes
0 answers

large tables, slow performance

Given a Java Swing application that has 20 JTreeTable instances that contain data updating frequently. (each row updates 5 times/sec). These tables contain 50k rows each. Reducing the number of tables or the update rate is not an option. This…
Bogdan T.
  • 668
  • 6
  • 13
0
votes
2 answers

Leaf nodes are not getting displayed in TreeTable

I am working on a TreeTable component of a Swing application. I followed the tutorial given at TreeTables2 I am passing a Message object to the PropertiesTableModel which I used to create the JTreeTable and suppose to view them as shown in the…
sher17
  • 607
  • 1
  • 12
  • 31
0
votes
1 answer

Implementing JTree || Customizing JTree in our own way

I want to implement the JTree code into my custom style as shown in figure bellow. I want to design a JTree to be editable on real-time and dynamically store the data into a database. When I want to add the child, as can be seen on figure, I want to…
ksodari
  • 67
  • 8
0
votes
1 answer

How to use JTree to display files from a directory in JPanel?

I am working on developing a GUI using Swing. The GUI is implemented in such a way that the when the user wants to load a set of text files, then the filechooser dialog should open and the user selects the directory in which all the files are…
novicegeek
  • 773
  • 2
  • 9
  • 29
0
votes
1 answer

Swing Outline with Checkbox in node column

I am creating an JOutline that has rooms, and inside each room has multiple products. You can select an individual product and hit details, but I also need to be able to select check boxes next to multiple products using a checkbox. I am…
Kyper
  • 1
0
votes
1 answer

Remove selected node from JTreeTable SwingX error

I am having a strange error when I am trying to remove selected node from JTreeTable. First of all, I get selected row in my main class from JXtreeTable table.getSelectedRow() I do it with this method, and it returns me a correct number of row. But…
Ophelia
  • 549
  • 1
  • 5
  • 26
0
votes
1 answer

Adding and removing elements in Jtreetable in swingX

I am learning how to implement TreeTable in SwingX. For a start I have a table model: import java.util.ArrayList; import java.util.List; import org.jdesktop.swingx.treetable.AbstractTreeTableModel; import…
Ophelia
  • 549
  • 1
  • 5
  • 26
0
votes
1 answer

TreeTableRender for JXTreeTable

How can I assign different Renderers for different Column in a JXTreeTable. The JXtreeTable has different Column Types (like currency, date,...etc.). In a JXTable I used the getColumn(identifier).setCellRender(TableCellRender) Method. What should I…
0
votes
1 answer

valueChanged() gets called multiple times in TreeSelectionListener

I have a tree table and I'm adding a treeSelectionListener on it. On one selection of a row the function valueChanged gets called 4times. I managed to control it to 2times by checking getOldLeadSelectionPath() to null. Is there a better way to limit…
Arnab Saha
  • 17
  • 5
0
votes
0 answers

Span columns/merge cells with Netbeans' Swing Outline?

How would I have a cell span multiple columns using Netbeans' Swing Outline? This is not in the documentation and I'm not sure where to even start. Note that I'm trying to do the same thing with JXTreeTable, but no success so far
TheLQ
  • 14,830
  • 14
  • 69
  • 107
0
votes
1 answer

Tree Table : links are not shown

I've created a custom Table structure by combining a JTree and JTable. it looks like this: addition of leafs can be done to any element. But when I try to add a node to a row which has children already, the link in not shown and the newly added…
KTB
  • 1,499
  • 6
  • 27
  • 43
0
votes
1 answer

Java JTable Expand Collapse Behaviour

Can anybody please point me the direction, how I can achieve below behavious using JTable? http://www.jankoatwarpspeed.com/examples/expandable-rows/ I need some sample code to make image clickable(changing Expand/Collpase images) in the cell. Please…
user1483570
  • 51
  • 3
  • 10