return jMainToolBar;
}
private void eventAddTable()
{
final JDialogAddTable form = new JDialogAddTable(ClientLobby.this, m_server.getPlayerName(), 1);
form.setVisible(true);
if (form.isOK())
{
final int noPort = m_server.createTable(form.getTableName(), form.getBigBlind(), form.getNbPlayer(), form.getWaitingTimeAfterPlayerAction(), form.getWaitingTimeAfterBoardDealed(), form.getWaitingTimeAfterPotWon(), form.getLimit(), form.getStartingMoney());
if (noPort != -1)
{
joinTable(noPort, form.getTableName(), form.getBigBlind());
refreshTables();
}
else
{
System.out.println("Cannot create table: '" + form.getTableName() + "'");
}
}
}