如何从JAVA Fx 2.0的Tableview行获取数据

Bip*_*ari 4 java tableview javafx-2

您好iam使用此代码获取数据

Set<Account> selection =new HashSet<Account>table.getSelectionModel().getSelectedItem();
Run Code Online (Sandbox Code Playgroud)

但我得到这个作为输出

passbookprintingdemo.AccountPage$Account@1eb5170
Run Code Online (Sandbox Code Playgroud)

任何人都可以解释我如何获取数据而不是这个类名?

提前致谢

Bip*_*ari 7

table.getSelectionModel().getSelectedItem().YourGetterFunctionName and you will get your data :) 
Run Code Online (Sandbox Code Playgroud)