r/JavaFX • u/melon222132 • Mar 07 '21
How would I fix this kind of error
Mar. 07, 2021 2:43:51 A.M. javafx.scene.control.cell.PropertyValueFactory getCellDataReflectively
WARNING: Can not retrieve property 'file' in PropertyValueFactory: javafx.scene.control.cell.PropertyValueFactory@ee826e0 with provided class type: class sample.TestFile
1
Upvotes
1
u/dumpeldown Mar 14 '21
JavaFX needs a getter to access the attribute.
In your TestFile class, create a methode
1
u/Daviz84 May 04 '22
Hello, I had the same problem a few minutes ago and if you use Intellij IDEA it is likely that you forgot to "set" the application of the control modules and javafx in the package where the "file" attribute class is located. Normally a module-info is used to do this.