added client and server classes

git-svn-id: svn://anubis/gvsu@27 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-03-08 17:46:15 +00:00
parent 4dd4e8b47b
commit 7516e45391
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,4 @@
public class KaZaClient
{
}

View File

@ -14,6 +14,8 @@ public class KaZaGUI extends JFrame
private JTextField m_serverField;
private ActionEventHandler m_handler;
private JComboBox m_speedCombo;
KaZaClient m_client;
KaZaServer m_server;
public KaZaGUI()
{
@ -64,7 +66,7 @@ public class KaZaGUI extends JFrame
}
}
public class ConnectionSpeed
private class ConnectionSpeed
{
String m_caption;
int m_kbps;
@ -161,6 +163,12 @@ public class KaZaGUI extends JFrame
private JPanel getServerPanel()
{
return new JPanel();
JPanel serverPanel = new JPanel();
serverPanel.setLayout(new BoxLayout(serverPanel, BoxLayout.Y_AXIS));
serverPanel.add(new JLabel("Transfers:"));
serverPanel.add(new Box.Filler(new Dimension(0, 0),
new Dimension(0, Short.MAX_VALUE),
new Dimension(0, Short.MAX_VALUE)));
return serverPanel;
}
}

View File

@ -0,0 +1,4 @@
public class KaZaServer
{
}