private void generateBottomPanel() { bottomPanel = new JPanel(); PropertyView genericPropViews; Property[] props = Controller.getProperties(); // System.out.println(props.length); for (int i = 9; i > -1; i--) { genericPropViews = new PropertyView(props[i]); bottomPanel.add(genericPropViews.getPanel()); // System.out.println("Accessed "+ i); } }
private void generateLeftPanel() { leftPanel = new JPanel(); leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS)); PropertyView genericPropViews; Property[] props = Controller.getProperties(); // System.out.println(props.length); for (int i = 17; i > 9; i--) { genericPropViews = new PropertyView(props[i]); leftPanel.add(genericPropViews.getPanel()); // System.out.println("Accessed "+ i); } }
private void generateRightPanel() { rightPanel = new JPanel(); rightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.Y_AXIS)); PropertyView genericPropViews; Property[] props = Controller.getProperties(); // System.out.println(props.length); for (int i = 28; i < props.length; i++) { genericPropViews = new PropertyView(props[i]); rightPanel.add(genericPropViews.getPanel()); // System.out.println("Accessed "+ i); } }
private void generateTopPanel() { topPanel = new JPanel(); // topPanel.setLayout(); PropertyView genericPropViews; Property[] props = Controller.getProperties(); // System.out.println(props.length); for (int i = 18; i < 28; i++) { genericPropViews = new PropertyView(props[i]); topPanel.add(genericPropViews.getPanel()); // System.out.println("Accessed "+ i); } }