From 3e24b899ac54613c75a255cfdc017b136c0a5b9d Mon Sep 17 00:00:00 2001 From: Zodsmar Date: Sun, 26 Apr 2020 23:33:51 -0400 Subject: [PATCH] Cleaned up code. Removed unused code etc. --- src/main/java/sassa/gui/guiCollector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/sassa/gui/guiCollector.java b/src/main/java/sassa/gui/guiCollector.java index d265f44..cce4e59 100644 --- a/src/main/java/sassa/gui/guiCollector.java +++ b/src/main/java/sassa/gui/guiCollector.java @@ -26,8 +26,8 @@ public class guiCollector { private List comboBoxManager(GridPane pane, String inORex) { List checkedTexts = new ArrayList(); int k = 0; - for(int i = 0; i < pane.getRowCount(); i++) { - for(int j =0; j < pane.getColumnCount(); j++) { + for(int i = 0; i < (pane.getChildren().size() / 3) + 1; i++) { + for(int j =0; j < 3; j++) { //Adding an empty pane to the grid to fill in blanks check based on visiblity because its the only object going to be invisible if(pane.getChildren().get(k).isVisible()){ VBox tempVbox = (VBox) pane.getChildren().get(k);