dimanche 20 mai 2018

PropertyCellValueFactory with array values in Java

I am using PropertyValueFactory to get fields from a class that contains a field that is an array. PropertyValueFactory uses reflection in order to get the fields, like so:

IMAGE 1

However, the issue is my values field is an array. I was wondering about how to get the values of the array since it is being grabbed through reflection. Here is the code around where I am trying to access the array value, for more clarity:

IMAGE 2

values is my array in question here. I tried values[0] But it did not work.





Aucun commentaire:

Enregistrer un commentaire