aboutsummaryrefslogtreecommitdiff
path: root/CS2452/Skype/src/Skype/MGui.java
diff options
context:
space:
mode:
Diffstat (limited to 'CS2452/Skype/src/Skype/MGui.java')
-rw-r--r--CS2452/Skype/src/Skype/MGui.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/CS2452/Skype/src/Skype/MGui.java b/CS2452/Skype/src/Skype/MGui.java
new file mode 100644
index 0000000..c545ffe
--- /dev/null
+++ b/CS2452/Skype/src/Skype/MGui.java
@@ -0,0 +1,27 @@
+package Skype;
+
+import java.util.concurrent.Semaphore;
+
+import javax.swing.JFrame;
+
+public class MGui
+{
+ public static void main(String[] args)
+ {
+ audio aud = new audio(50);
+ Semaphore volflg = new Semaphore(1);
+ Semaphore svrflg = new Semaphore(1);
+ Semaphore guiflg = new Semaphore(1);
+
+ int port = 7777;
+
+ Gui g = new Gui(aud,svrflg,volflg,guiflg,port);
+ g.setSize(500, 500);
+ g.setLocation(32, 32);
+ g.setVisible(true);
+ g.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
+ Server server = new Server(g, port,aud,svrflg,volflg,guiflg);
+ }
+
+}