Reputation: 264
I know following code won't compile. But this is exactly what I want:
public ObjectProperty<File> myFile = new SimpleObjectProperty<File>();
Label fileName = new Label();
fileName.textProperty().bind(myFile.getValue().getName());
Being able to bind properties of an object like java.util.File without declaring every property of File as e.g. StringProperty. How should I do this?
Upvotes: 1
Views: 621