blob: c545ffeff79a28815f14655e80d27100753456c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
}
|