-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoteGUI.java
More file actions
33 lines (27 loc) · 789 Bytes
/
RemoteGUI.java
File metadata and controls
33 lines (27 loc) · 789 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
28
29
30
31
32
33
package com.company;
import javax.swing.*;
import java.awt.*;
public class RemoteGUI {
public JFrame frame;
public RemoteGUI() {
frame = new JFrame("HT RDA");
frame.setSize(720,480);
frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setBackground(Color.gray);
}
private void run() {
JButton host = Place_Jbuton("Host");
JButton client = Place_Jbuton("Client");
}
private JButton Place_Jbuton(String input){
JButton buton = new JButton(input);
frame.add(buton);
frame.repaint();
return buton;
}
public static void main(String[]args){
RemoteGUI a = new RemoteGUI();
a.run();
}
}