// If the user decided to join an existing game, it is harmless
// here to indicate that we want to create an AI player. This will
// do nothing.
if (computerAdversoryRadioButton.isSelected())
{
AIGameLevel aiLevel = (AIGameLevel) aiLevelComboBox.getSelectedItem();
psFrame = new PlayerSelectionFrame(gameServer, aiLevel);
}
else
psFrame = new PlayerSelectionFrame(gameServer, null);