initial classes, three tab GUI working

git-svn-id: svn://anubis/gvsu@22 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-03-07 21:07:48 +00:00
parent cb89c7a4ac
commit 39b6c90811
3 changed files with 52 additions and 0 deletions

9
cs654/proj1/KaZa.java Normal file
View File

@ -0,0 +1,9 @@
public class KaZa
{
public static void main(String args[])
{
KaZaGUI gui = new KaZaGUI();
}
}

32
cs654/proj1/KaZaGUI.java Normal file
View File

@ -0,0 +1,32 @@
import java.awt.*;
import javax.swing.*;
public class KaZaGUI extends JFrame
{
public KaZaGUI()
{
super("Josh's KaZa application for CS654!");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(400, 400);
setVisible(true);
Container c = getContentPane();
JTabbedPane pane = new JTabbedPane();
c.add(pane);
JPanel clientPanel = new JPanel(new BorderLayout());
pane.add("Client", clientPanel);
JPanel transferPanel = new JPanel(new BorderLayout());
pane.add("Transfers", transferPanel);
JPanel serverPanel = new JPanel(new BorderLayout());
pane.add("Server", serverPanel);
}
public void run()
{
}
}

11
cs654/proj1/Makefile Normal file
View File

@ -0,0 +1,11 @@
all:
javac *.java
.PHONY: run
run:
java KaZa
.PHONY: clean
clean:
-$(RM) -f *.class *~