@@ -0,0 +1,1371 @@
+package main.java.ui.GUI.TableModels;%0A%0Aimport java.util.List;%0Aimport java.util.Vector;%0Aimport javax.swing.table.DefaultTableModel;%0Aimport main.java.logic.*;%0Aimport main.java.logic.data.*;%0Aimport main.java.logic.exceptions.GameNotStartedException;%0A%0Apublic class PlayerInfoTableModel extends DefaultTableModel%7B%0A%09private Game game;%0A%09%0A%09public PlayerInfoTableModel(final Game game, final Vector%3CString%3E columnNames) throws GameNotStartedException%7B%0A%09%09super();%0A%09%09this.game = game;%0A%09%09this.columnIdentifiers = columnNames;%0A%09%09setDataVector(this.game.getPlayers());%0A%09%7D%0A%09%0A%09public void setDataVector(final List%3CPlayer%3E players) throws GameNotStartedException%7B%0A        final Vector%3CVector%3CString%3E%3E rows = new Vector%3CVector%3CString%3E%3E();%0A        for (final Player player : players) %7B%0A            final Vector%3CString%3E playerInVector = new Vector%3CString%3E();%0A            playerInVector.add(%22%22 + player.getName());%0A            playerInVector.add(%22%22 + player.getCountries().size());%0A            if (this.game.getCurrentGameState() == Game.gameStates.RUNNING)%7B%0A            %09playerInVector.add(player == game.getCurrentRound().getCurrentPlayer()? %22X%22 : %22%22);%0A            %7Delse if (this.game.getCurrentGameState() == Game.gameStates.WAITING)%7B%0A            %09playerInVector.add(%22%22);%0A        %09%7D%0A            rows.add(playerInVector);%0A        %7D%0A        this.setDataVector(rows, columnIdentifiers);%0A%09%7D%0A%7D%0A

Add Table model