-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
27 lines (23 loc) · 738 Bytes
/
Copy pathClient.java
File metadata and controls
27 lines (23 loc) · 738 Bytes
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
import java.awt.*;
import javax.swing.*;
public class Client extends JFrame {
private static final long serialVersionUID = 1L;
Dimension screenSize;
public Client() {
super();
screenSize = Toolkit.getDefaultToolkit().getScreenSize();
this.setSize(800, 640);
Screen p = new Screen();
Container c = this.getContentPane();
c.setLayout(new BorderLayout());
c.add(p, SwingConstants.CENTER);
new Thread(p).start();
SwingUtilities.invokeLater(new Runnable(){
public void run() {
setVisible(true);
}});
}
public static void main(String[] args) {
new Client();
}
}