initialize member variables in Server

git-svn-id: svn://anubis/gvsu@40 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-03-08 22:56:07 +00:00
parent a96c1edaae
commit 222e23e868
2 changed files with 7 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class KaZaGUI extends JFrame
m_statusLabel = new JLabel();
m_connectButton = new JButton("Connect");
m_connectButton.addActionListener(m_handler);
m_closeButton = new JButton("Close");
m_closeButton = new JButton("Exit");
m_closeButton.addActionListener(m_handler);
m_searchButton = new JButton("Search");
m_searchButton.addActionListener(m_handler);

View File

@ -10,6 +10,12 @@ public class KaZaServer implements Runnable
private HashMap<String, ClientInfo> m_clientData;
private Vector<Socket> m_peerGroupLeaders;
public KaZaServer()
{
m_clientData = new HashMap<String, ClientInfo>();
m_peerGroupLeaders = new Vector<Socket>();
}
public void run()
{
try {