Questions tagged [treetablecelleditor]

9 questions
3
votes
2 answers

How to append text in JTable cell

I have here a very simple demo program and sorry for the not so short version of code but its the shortest I can do. Anyway, I have here a jtable with editable cell for column 2. I want the numpad on the right side to append to the selected cell of…
user3771102
  • 558
  • 2
  • 8
  • 27
2
votes
2 answers

TreeTableView disable any cell in parent row

How can I disable any cell editable in parent row in treetableview? Please look the pictures and check the sample code. Shortly I want to disable row editable if row is expandable (root row or sub root row) this picture is correct but this is not…
sancho
  • 598
  • 2
  • 8
  • 22
1
vote
1 answer

Primefaces TreeTable with CellEditor extreme slow / freeze

im using a TreeTable with 15 columns and 12 contains a cellEditor. After 29 rows i cant expand any further nodes and the site seems to be broken (no buttons are working). After removing some cellEditor i can add more rows until the site is broken…
Vikanto
  • 76
  • 5
1
vote
1 answer

Javafx: custom checkbox treetablecell doesn't commit the changes

I'm trying to create my custom TreeTable CellFactory using CheckBox, I know there is a default CellFactory called CheckBoxTreeTableCell.forTreeTableColumn(), but I want to use my custom cellFactory so I can do somethings after clicking on the…
SlimenTN
  • 3,383
  • 7
  • 31
  • 78
1
vote
0 answers

How to get the selected node of a Tree Table in swing?

I have implemented a tree table in swing refrring the tutorial available here .I have two columns in which Message Object or Fields objects under the Message will be displayed. If the node is a Field then it's Value will be displayed in the second…
sher17
  • 607
  • 1
  • 12
  • 31
0
votes
0 answers

Using one class for a TableCellEditor and TableCellRenderer

Are there any rational pros and cons on using one class acting as both TableCellEditor and TableCellRenderer? I'm not asking for preferences or "which way is more popular", but rather if there are some inherent issues with that design (other than…
Igeryu
  • 11
  • 3
0
votes
2 answers

Lose selection of a JTable cell

When you click on a JTable cell, the row becomes "selected", I want it so that when I click on anything else, it becomes unselected. I'm thinking of doing this with a mouse listener on the table but not sure how to recognize (click not on table).…
Aequitas
  • 2,205
  • 1
  • 25
  • 51
0
votes
0 answers

Table view cell Editor: Unable to call commitEdit in textbox focus listener

I created a table view with the cell editor using javafx2. To edit cell I created a textbox and created focus listener to find the changes in the cell. I called the CommitEdit() method to update the changes in table view but the table not get…
0
votes
1 answer

JTree custom Cell Editor for a custom component is not responding to first click

I have a Java app that displays the users file system in a tree. I display the folder with a checkbox, icon and text. To do this I had to created a custom component for the tree cell. The component subclasses JLabel and contains JCheckBox and…
user3375401
  • 481
  • 1
  • 9
  • 19