public GameStatisticListPanel(MainFrame mf, PresentationController pc) { this(); this.mf = mf; this.pc = pc; mf.setBounds(mf.getX(), mf.getY(), 720, 480); txtNumUsers.setText(String.valueOf(pc.numberUsers())); txtNumBoards.setText(String.valueOf(pc.numberBoardrs())); txtNumMatches.setText(String.valueOf(pc.numberMatches())); allBoards = this.pc.allBoards(); for (int i = 0; i < allBoards.size(); i++) { listModel.addElement( "size: " + allBoards.get(i).getValue().getValue() + ", board: " + allBoards.get(i).getValue().getKey()); } if (allBoards.size() > 0) list.setSelectedIndex(0); }