Questions tagged [jxtreetable]

A SwingX component to display hierarchical data in a table, with one column to expand and hide the hierarchy.

A SwingX component to display hierarchical data in a table, with one column to expand and hide the hierarchy.

80 questions
16
votes
1 answer

Subclassing DefaultRowSorter to allow tree-table sorting

In this question, I asked how it was possible to make a JXTreeTable (SwingX) sort its top element. I took a look at the library (aephyr) suggested by mKorbel and tried to combine it with JXTreeTable (I created a new class named JXSortableTreeTable…
ixM
  • 1,244
  • 14
  • 29
8
votes
2 answers

How to make a JXTreeTable sort its top elements

I'm aware (I've looked at the sources ;) ) that sorting on JXTreeTable has been disabled. However, I would like to allow sorting on all columns based only on the values of the direct children of the root node. Say I have a structure like this: Name …
ixM
  • 1,244
  • 14
  • 29
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
7
votes
2 answers

How to edit a JXTreeTable cell in only one mouse click?

I want to use a JComboBox as a cell editor in a JXTreeTable. It works fine with a standard DefaultCellEditor (i.e. with a click count to start equal to 2). Now I want the column to be editable on only one click. So I added a…
Marc de Verdelhan
  • 2,501
  • 3
  • 21
  • 40
7
votes
1 answer

How to highlight every other row in JTable with swingx 1.6

I need to highlight every other row in my JTable. With old version of swingx it could be done like this: table.setHighlighters(new HighlighterPipeline(new Highlighter[] { new AlternateRowHighlighter( color1, color2,color3 })); but now,…
Dakarth
  • 83
  • 7
6
votes
3 answers

Get Selected Value from JXTreeTable

I am building a treetable using JXTreeTabble and I want to disable/able menu items depending on the selected value. So, I tried to put this code in my table model: public Object getValueAt(int index) { if (index >= 0 && index <…
user276002
  • 178
  • 3
  • 10
5
votes
2 answers

How to get a double-clicked TreeTableNode?

I'm working with Eclipse and I've got a question about JXTreeTables. I want a window, showing some information about the node, to pop up, when a node is double-clicked. Now, is it possible to get the double-clicked node of the JXTreeTable or null if…
user107043
  • 97
  • 7
5
votes
1 answer

TreeTableColumn.visible : A bound value cannot be set

I make a simple JavaFX application. In this application there is a treetable with 2 columns and a check box. If check box is selected column 2 will be visible, otherwise not visible. To do this I bound tree table column visible property to checkbox…
sancho
  • 598
  • 2
  • 8
  • 22
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
5
votes
1 answer

Custom TableCellRenderer/TreeTableCellRenderer doesn't render Table cells

I made this CustomCellRenderer class intended to be used in JXTreeTable and JXTable objects since I have many of these in my project. So this class implements TreeCellRenderer and TableCellRenderer interfaces: public class CustomCellRenderer extends…
dic19
  • 17,821
  • 6
  • 40
  • 69
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
4
votes
2 answers

Fest slows down while testing with swingx jxtreetable

I am not sure how to explain this. But I'll try.. Fest slows down to crawl while working with JXTreeTable of swingx. It doesn't slow down initially. It works fine for a while, but after a while when the same actions are repeated it slows down…
sethu
  • 8,181
  • 7
  • 39
  • 65
4
votes
1 answer

Making JXTreeTable Editable

Can anyone provide a concrete example of how to make a JXTreeTable editable? Specifically, I would like to make all cells in one column editable. It does not appear to be the case that this functionality is supported out of the box.
Joel
  • 29,538
  • 35
  • 110
  • 138
3
votes
1 answer

Display updated tree table value from another tree table

I am trying to make a scene editor to go with my rendering engine. I am using swing to make the GUI and also swingx for its JXTreeTable component. Everything is working fine, except that the Scene tree table is not updating the names of the nodes…
NickLH
  • 2,643
  • 17
  • 28
3
votes
1 answer

JXTreeTable in combination with TreeCellRender and selectedBackground with ColorHighlighter

I' m trying to set a custom selectionBackground to rows in a JXTreeTable. This works if I'm not setting a custom TreeCellRenderer. If I set it additionally like in my example the selectionBackground of the text of the node is the default one. Any…
user4022746
1
2 3 4 5 6