Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@sSam how should i do that?
Maybe you find the issue (its in editcontroller)
https://github.com/d4rkmindz/...
Please be kind. I ignored every solid convention because i have to be finished quickly... -
sSam15017yI'm on phone and going to sleep, but basically a TableView displays a list of model items, let's say it displays a list of Persons. Now if there's editable column "Name" the Person class has to have a field that's JavaFX property and can be accessed. Something like:
class Person {
private StringProperty name = new SimpleStringProperty();
public nameProperty() {
return name;
}
}
and that column has cellValueFactory pointing to that property:
nameColumn.setCellValueFactory(column -> column.getValue().nameProperty());
Not sure about syntax as I'm on the phone. -
lolicon27307ymy dude, i'm currently taking a java course and we are using motherfucking swing. jtables my dude, jtables.
-
I ❤️ ☕
But seriously hating a language only because you don't understand it is lame 😉
Related Rants
I FUCKING HATE JAVA
Wee need to do a schoolproject with JavaFX and TableViews. The editing of the tables works grate and is also displayed after commiting. But wen i take the data from the TableViews there is still the old one...
rant
fuck this i'm out
cunt
java