getting corresponding filename of image once button pressed

后端 未结 4 1639
南笙
南笙 2021-01-28 19:20

A Set of imagefiles are added to an arraylist(filelist2) of type File.Then an imageview and a button are affffded to a vbox,such vboxes are added to a grids of a gripane using a

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-28 19:38

    Consider using a java.util.HashMap and calling hashMap.get(actionEvent.getSource()).getName() to get the file name.

提交回复
热议问题