MatchPanel matchPanel = new MatchPanel();
NetworkPanel networkPanel = new NetworkPanel();
DetailPanel detailPanel = null;
ConfigPanel configPanel = null;
Gamer gamer = null;
Class<?> gamerClass = gamers.get(typeComboBox.getSelectedIndex());
try {
gamer = (Gamer) gamerClass.newInstance();
} catch(Exception ex) { throw new RuntimeException(ex); }
detailPanel = gamer.getDetailPanel();
configPanel = gamer.getConfigPanel();
gamer.addObserver(matchPanel);
gamer.addObserver(detailPanel);
GamePlayer player = new GamePlayer(port, gamer);
player.addObserver(networkPanel);
player.start();