initial classes, three tab GUI working
git-svn-id: svn://anubis/gvsu@22 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
cb89c7a4ac
commit
39b6c90811
9
cs654/proj1/KaZa.java
Normal file
9
cs654/proj1/KaZa.java
Normal 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
32
cs654/proj1/KaZaGUI.java
Normal 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
11
cs654/proj1/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
all:
|
||||
javac *.java
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
java KaZa
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-$(RM) -f *.class *~
|
Loading…
x
Reference in New Issue
Block a user