-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShopViewer.java
65 lines (54 loc) · 1.5 KB
/
ShopViewer.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.FlowLayout;
import javax.swing.BoxLayout;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class ShopViewer extends JFrame {
private JPanel contentPane;
private Shop shop;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
ShopViewer frame = new ShopViewer();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public ShopViewer() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(new BorderLayout(0, 0));
Shop panel = new Shop();
contentPane.add(panel, BorderLayout.NORTH);
JPanel row5 = new JPanel();
FlowLayout fl_row5 = (FlowLayout) row5.getLayout();
contentPane.add(row5, BorderLayout.SOUTH);
JButton btnNewButton = new JButton("Add Customer");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
}
});
row5.add(btnNewButton);
JButton btnNewButton_1 = new JButton("Step Time");
row5.add(btnNewButton_1);
}
}