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
13
votes
3 answers

Java Swing table tree

When you open a XML in Eclipse, the content can be shown in as a tree structure like The tree is "embedded" in a table and the content is showed in a seperate column. This would be very nice to replicate in Swing, not for XML content specifically,…
Theodor
  • 5,536
  • 15
  • 41
  • 55
9
votes
2 answers

How to show a tooltip on a mouse click

I have a JTreeTable and have successfully implemented a MouseMotionListener to show a tooltip whenever the mouse is over one of the cells. However when clicking on the cell the tooltip does not show up. I've tried several things like setting the…
user935339
  • 91
  • 1
  • 1
  • 3
8
votes
1 answer

How to: JTable with collapsible JTree in first column and data in the other columns?

I am somewhat lost at this point: I try to create a JTable that is able to hold some kind of a Tree (JTree?) datastructure in the first column followed by data based on the tree Node in the other columns as illustrated in the following image: That…
Ulathar
  • 309
  • 3
  • 13
6
votes
1 answer

JTreeTable DnD crazy blinking drop cursor

I am using a slightly modified version of the Sun's example JTreeTable backed by my own model. That would be the third example (bookmarks one at http://java.sun.com/products/jfc/tsc/articles/bookmarks/). Everything works as expected except drag and…
predi
  • 5,528
  • 32
  • 60
5
votes
1 answer

Creating JTable inside node of JTree

I know that this question is being asked before but I did not get proper solution. I read about outline but that was just opposite of what I want i.e. JTable inside JTree I want to display data in a JTable but it is stored as different groups,so…
Nav S
  • 155
  • 2
  • 12
5
votes
1 answer

Is there a JTreeTable implementation that allows variable row height

I have been searching for a little while on this one. I need a JTreeTable that supports variable row height. Specifically, I want the rows that show the top level nodes to be taller than the child rows beneath them. I have been using the SwingX…
serg10
  • 31,923
  • 16
  • 73
  • 94
5
votes
1 answer

Creating TreeTables in Swing

Using this manual (http://www.comp.nus.edu.sg/~cs3283/ftp/Java/swingConnect/tech_topics/tables-trees/tables-trees.html) I'm trying to create tree table for my project's Swing user interface. In constructor of my class for table I redefined render…
Alex Zhulin
  • 1,239
  • 2
  • 22
  • 42
5
votes
1 answer

A Table like JTreeTable with editable components like ComboBox, TextArea, CheckBox as Rows

Is there any custom plugin(like JTreeTable with editable java components) in java, like in the above image. I know this can be done by Extending JTreeTable or JXTreeTable Class or using TreeCellEditor etcetera... But, I need a quite exact…
Wiki
  • 245
  • 3
  • 13
4
votes
1 answer

Implementing JTreeTable in swing

I would like to implement a JTreeTable. I saw the example in the official java website. I am a beginner to java and i am not able to understand that example. I have the tree node and child names as a string. How do i implement it?
Kaushik Balasubramanain
  • 1,248
  • 6
  • 28
  • 42
4
votes
2 answers

Using JTreeTable

I need to use a JTreeTable but even after searching for hours, I couldn't find any nice tutorial on JtreeTable or even a simple code from which I can understand. It would be very helpful if anyone can suggest me a nice tutorial or simple code…
aditya_gaur
  • 3,209
  • 6
  • 32
  • 43
4
votes
2 answers

JXTreeTable model doesn't allow to use insertNodeInto()

I am using a tree table model in my app which extends AbstractTreeTableModel in order to create a JXTreeTable. Below is my model. import org.jdesktop.swingx.treetable.AbstractTreeTableModel; import…
sher17
  • 607
  • 1
  • 12
  • 31
3
votes
1 answer

Horizontally expanding JTree

It may seem a little bit strange, but is there a way to make the last node of JTree expand horizontally rather than vertically? My vertical tree nodes represent different discussion subjects (politics, culture, etc.) and each of those nodes has a…
stokastik
  • 81
  • 4
2
votes
1 answer

JXTreeTable: how to use ComponentProvider to set the renderer for one column

I'm using JXTreeTable to display some data and I want to use the provided mechanisms of SwingX to change the renderer for some columns. I previously used a JXTable and custom implementations of TableCellRenderer but this doesn't work anymore (I see…
ixM
  • 1,244
  • 14
  • 29
2
votes
1 answer

JTreeTable selection listener indexes

I'm using a JTreeTable taken from the java sun example.. I have the following structure: +1 +4 +7 which represents the 3 node collapsed.. -1 --2 ---3 -4 --5 ---6 -7 --8 ---9 And this is the structure expanded. I've added a ListSelectionListener to…
marco
  • 295
  • 3
  • 13
2
votes
2 answers

JTable doesn't scroll up

I have JScrollPane with a JTreeTable. Typically my JTable contains a lot of items and app must set focus to specific row in treetable and scroll to it. I'm using the following recommended code to set…
palcan
  • 73
  • 1
  • 6
1
2 3 4