Can anybody help me how i can put a combobox in a tableview in a fxml file.
Is this possible? Maybe a link to a example
I like to work with scenebuilder but there is now option to put a combobox in a column
this is not a fxml file but can anybody tel me why i don't see the combobox in tablecolumn c3 when i put a ProgressBarTableCell in it i see it but when i change it to ComboBoxTableCell then column c3 is emty.
By the way Day is a Enum type and returns days of the week.
John Damien Smith
posted 4 years ago
Works for me.
I couldn't tell you exactly why it does not work for you.
There are probably many reasons.
1. The value you pass to PropertyValueFactory should follow java naming conventions (e.g. start with a lowercase).
2. You may not have defined the matching property in your model class for the table view.
3. You might not have set the table and the table column of the combo selectable value to editable.
4. You might not be double clicking a cell to put it into editing mode so that the corresponding combo box displays.
5. . . .
One thing to note with the above code is that when you run it on Java8u20b11, it outputs CSS warnings (which it should not do). It otherwise seems to work OK after some limited testing. I created https://javafx-jira.kenai.com/browse/RT-36966 to request a developer look into why the css warnings are being generated.