-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGui.java
38 lines (27 loc) · 931 Bytes
/
Gui.java
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
34
35
36
37
38
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Gui extends JFrame {
JLabel label;
JTextField textField;
JButton button;
public static void main(String args[]) {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(600, 600);
JPanel panel = new JPanel();
JLabel label = new JLabel("Enter Coin");
JTextField tf = new JTextField(10);
JButton send = new JButton("Find Arbitrage");
JButton reset = new JButton("Reset");
panel.add(label);
panel.add(label);
panel.add(tf);
panel.add(send);
panel.add(reset);
JTextArea ta = new JTextArea();
frame.getContentPane().add(BorderLayout.SOUTH, panel);
frame.getContentPane().add(BorderLayout.CENTER, ta);
frame.setVisible(true);
}
}