コード例 #1
0
  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);

    }
  }
コード例 #2
0
  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);

    }
  }
コード例 #3
0
  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);

    }
  }
コード例 #4
0
  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);

    }
  }