FileDocCategorySizeDatePackage
PlayerInfoPane.javaAPI DocExample1147Tue Dec 12 18:58:44 GMT 2000bingo.shared

PlayerInfoPane

public class PlayerInfoPane extends JPanel implements PlayerListener

Fields Summary
protected JScrollPane
scrollPane
protected JTable
cardsAndPlayers
protected PlayerInfoModel
model
Constructors Summary
public PlayerInfoPane()

	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?
        }
    
Methods Summary
public voidclear()

	model.clear();
    
public voidupdatePlayer(PlayerRecord playerRecord)

	model.updatePlayer(playerRecord);