//TODO: USE BELOW WHEN INFO IS CHANGED
private Pair<ImageView, String> loadImageWithCaption(int fileId, String caption, Map <String,
            Integer> weaponMap, Integer id) {
        try {
            //TODO: USE BELOW WHEN INFO IS CHANGED
            System.out.println(fileId);
            var image = new ImageView(myLogic.getImage(fileId));
            System.out.println("**********");
            System.out.println(image);
            weaponMap.put(image.toString(), id);
            image.setFitWidth(100);
            image.setFitHeight(100);
            Pair pair = new Pair<>(image, caption);
            return pair;
//            return new Pair<>(image, caption);
        }
        catch(Exception e){
            System.out.println(e);
            //This shouldn't ever happen
        }
        return null;
    }
Integer> weaponMap, Integer id) {
try {
//TODO: USE BELOW WHEN INFO IS CHANGED
System.out.println(fileId);
var image = new ImageView(myLogic.getImage(fileId));
private Pair<ImageView, String> loadImageWithCaption(int fileId, String caption, Map <String,
Integer> weaponMap, Integer id) {
try {
//TODO: USE BELOW WHEN INFO IS CHANGED
System.out.println(fileId);
var image = new ImageView(myLogic.getImage(fileId));
System.out.println("**********");
System.out.println(image);
weaponMap.put(image.toString(), id);
image.setFitWidth(100);
image.setFitHeight(100);
Pair pair = new Pair<>(image, caption);
return pair;
// return new Pair<>(image, caption);
private Pair<ImageView, String> loadImageWithCaption(int fileId, String caption, Map <String,
Integer> weaponMap, Integer id) {
try {
//TODO: USE BELOW WHEN INFO IS CHANGED
System.out.println(fileId);
var image = new ImageView(myLogic.getImage(fileId));
System.out.println("**********");
System.out.println(image);
weaponMap.put(image.toString(), id);
image.setFitWidth(100);
image.setFitHeight(100);
Pair pair = new Pair<>(image, caption);
return pair;
// return new Pair<>(image, caption);
}
catch(Exception e){
System.out.println(e);
//This shouldn't ever happen
}
return null;
}