Questions tagged [javafx-tableview]

41 questions
0
votes
0 answers

How to add linked list into table view in java, and how to correctly pass values from class(controller) to another class(controller)

I am creating a page (in JavaFX) and wanted to show the contents of the table in the Sqlite database that are stored as LinkedList<> in a code, in my JavaFx I have created TableView that's structure is identical to the ones that in database. So here…
0
votes
0 answers

Is there any way to set multiple different "variables" into one column of a tableview in javafx?

Not sure if variables is the right word here... I have a tableview that is to be populated with Client objects. Each Client object has an int id, a companyName, a firstName and a lastName The tableview only has 2 columns (one for the clientId and…
user19854482
0
votes
1 answer

Is there a javafx.scene.control.TableColumn function like setOnEditCommit() that can be used for finding the property related to the changed cell?

I'm using JavaFX 17 to make an editable table. The table data comes from an observable list of MyCustomClass objects. I then made all cells editable by setting the cell factory of each column to TextFieldTableCell. So far so good. Setter function…
Gavin Ray
  • 129
  • 1
  • 7
0
votes
0 answers

how to set javafx Togglebutton in javafx Tableview to correct image based on boolean from sqlite database(JDBC)

I am working on a program that is going to allow users to select/add sounds as favorites via a toggle button with an image in a javafx tableview tablecell and set the status of the sound in the database(the updating of the favorite status in the…
0
votes
0 answers

Java FX Tableview not loading data from MYSQL DB

I fairly new to Java and JavaFX am trying to write a program that will pull user data from a MYSQL database. My connection works, but I am unable to pull the information into the TableView. Now I have reworked this so many times that now I have no…
0
votes
1 answer

How to show data in TableView of nested objects?

I have a TableView in controller's class: public class MarriageTableView extends AbstractTableViewController { @FXML private TableView tableView; @FXML private TableColumn groomFirstNameColumn, …
Wortig
  • 963
  • 2
  • 11
  • 37
0
votes
1 answer

How to modify the selected tableview according to the tableview cell

I have customized a Hyperlink cell here. I want the tableview to select the content when I click this link, but after I add Hyperlink, the tableview's selected seems to be invalid. tb_uGoodUrl.setCellFactory(new…
laram
  • 41
  • 6
0
votes
1 answer

Printing TableView in JavaFX displays junk/other language characters

I'm trying to print a TableView in JavaFX application. When I pass the TableView directly to the PrinterJob.printPage(TableView) the text data is in some other language but the view shows up fine i.e in English on the screen. ... final TableView…
vroom
  • 1
  • 4
0
votes
1 answer

How to add n- custom cells between two rows

So I am trying to visualize a curricilum as a table. It should look like this: As you can see there are custom cells (+) which are not a lesson. They are buttons. I have two classes: public class Lesson { private Room schoolRoom; private Room…
0
votes
1 answer

JavaFX: How to get all rows in TableView

I'd like to know the best & most efficient way to get JavaFX TableView data to a collection. I want to get all rows inside a JavaFX TableView.
Evin
  • 31
  • 1
  • 3
0
votes
1 answer

javafx TableView: Why does the sortOrder listener does not fire when I sort descending?

I have a javafx TableView and I want to know when the sort order of a column changes. I added a listener to the getSortOrder method. However, it only fires when I sort ascending, and never when I sort descending. To test this I used this example…
Christoph S
  • 697
  • 1
  • 6
  • 29
0
votes
1 answer

JAVAFX : Tableview row selection behaviour

I have the following piece of code to set background Color of a TableRow, column.setCellFactory((TableColumn p) -> { ComboBoxTableCell cell = new ComboBoxTableCell(FXCollections.observableArrayList(0, 1)) { …
user3164187
  • 1,382
  • 3
  • 19
  • 50
0
votes
1 answer

Javafx tableview on checkbox uncheck, disable button on same row but different column

Below image explains how I have populated my table: As you can see, I need to disable the Installments column button once the Collected column checkbox of related row is unchecked and vise versa. Here is my approach so far…
Madushan Perera
  • 2,568
  • 2
  • 17
  • 36
0
votes
1 answer

How to select multiple values by using ComboBoxTableCell or ChoiceBoxTableCell in Table View javafx

I have a tableview where user can double click on a column row & Combo Box drop down will appear with list of items. Here problem is user can only select one value at a time instead I want to allow user to select multiple values. Existing…
0
votes
1 answer

java-fx treetableview grouping common tree items

I have a treetableview that i am using to display list of employees with organisation as root item. Now i want to group tree items based on the department they work in. For example: currently i am displaying as mentioned below: current However i…