for (OnlineGameTable table : tableList) {
onlineGameTablesTable_.addRow(table, table.hasPlayer(currentName_));
}
// see if the table that the player is at is ready to start playing.
OnlineGameTable readyTable = tableList.getTableReadyToPlay(currentName_);
if (readyTable != null) {
// then the table the player is sitting at is ready to begin play.
JOptionPane.showMessageDialog(null,
"All the players required \n(" + readyTable.getPlayersString()
+ ")\n have joined this table. Play will now begin. ",
"Ready to Start", JOptionPane.INFORMATION_MESSAGE);
startGame(readyTable);