dd.ui
Class ChooseGame

java.lang.Object
  extended bydd.ui.ChooseGame
Direct Known Subclasses:
ChooseGameToObserve

public class ChooseGame
extends java.lang.Object

Interface for choosing a game. When the client connects to a server, the client needs to either join a game currently in progress or create a new game. This provides an interface for that choice.

Author:
Eric Scharff

Field Summary
protected  GUIEvents dlug
           
protected  javax.swing.JFrame f
           
protected  java.lang.String[] games
           
protected  javax.swing.JTree gameTree
           
protected  javax.swing.tree.DefaultTreeModel gameTreeModel
           
protected  javax.swing.Timer refreshList
           
protected  javax.swing.tree.DefaultMutableTreeNode top
           
 
Constructor Summary
ChooseGame(GUIEvents target, java.lang.String[] games)
           
 
Method Summary
 void close()
           
 void doJoinButton()
           
 void setGameList(java.lang.String[] gameList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

games

protected java.lang.String[] games

gameTree

protected javax.swing.JTree gameTree

f

protected javax.swing.JFrame f

dlug

protected GUIEvents dlug

refreshList

protected javax.swing.Timer refreshList

gameTreeModel

protected javax.swing.tree.DefaultTreeModel gameTreeModel

top

protected javax.swing.tree.DefaultMutableTreeNode top
Constructor Detail

ChooseGame

public ChooseGame(GUIEvents target,
                  java.lang.String[] games)
Method Detail

doJoinButton

public void doJoinButton()

setGameList

public void setGameList(java.lang.String[] gameList)

close

public void close()