super(false); //XXX
model = new PlayerInfoModel();
cardsAndPlayers = new JTable(model);
model.addTableModelListener(cardsAndPlayers);
scrollPane = new JScrollPane(cardsAndPlayers);
//Add the scroll pane to this panel.
setLayout(new GridLayout(1, 0));
add(scrollPane);
scrollPane.setPreferredSize(new Dimension(300, 50)); //arbitrary
try {
new PlayerListenerThread(this).start();
} catch (java.io.IOException e) {
//PENDING what to do?
}