-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitemset.java
224 lines (199 loc) · 6.19 KB
/
itemset.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class itemset extends JFrame {
static int o=0;
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
itemset frame = new itemset();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public itemset() {
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(null);
JLabel lblNewLabel = new JLabel("ITEM SETS");
lblNewLabel.setForeground(Color.BLUE);
lblNewLabel.setFont(new Font("Copperplate Gothic Bold", Font.PLAIN, 24));
lblNewLabel.setBounds(67, 11, 246, 33);
contentPane.add(lblNewLabel);
JButton btnNewButton = new JButton("I 0");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton.setBounds(39, 75, 89, 23);
contentPane.add(btnNewButton);
JButton btnNewButton_1 = new JButton("I 1");
btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=1;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_1.setBounds(39, 119, 89, 23);
contentPane.add(btnNewButton_1);
JButton btnNewButton_2 = new JButton("I 2");
btnNewButton_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=2;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_2.setBounds(39, 166, 89, 23);
contentPane.add(btnNewButton_2);
JButton btnNewButton_3 = new JButton("I 3");
btnNewButton_3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=3;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_3.setBounds(39, 212, 89, 23);
contentPane.add(btnNewButton_3);
JButton btnNewButton_4 = new JButton("I 4");
btnNewButton_4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=4;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_4.setBounds(165, 75, 89, 23);
contentPane.add(btnNewButton_4);
JButton btnNewButton_5 = new JButton("I 5");
btnNewButton_5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=5;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_5.setBounds(165, 119, 89, 23);
contentPane.add(btnNewButton_5);
JButton btnNewButton_6 = new JButton("I 6");
btnNewButton_6.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=6;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_6.setBounds(165, 166, 89, 23);
contentPane.add(btnNewButton_6);
JButton btnNewButton_7 = new JButton("I 7");
btnNewButton_7.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=7;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_7.setBounds(165, 212, 89, 23);
contentPane.add(btnNewButton_7);
JButton btnNewButton_8 = new JButton("I 8");
btnNewButton_8.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=8;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_8.setBounds(275, 75, 89, 23);
contentPane.add(btnNewButton_8);
JButton btnNewButton_9 = new JButton("I 9");
btnNewButton_9.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=9;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_9.setBounds(275, 119, 89, 23);
contentPane.add(btnNewButton_9);
JButton btnNewButton_10 = new JButton("I 10");
btnNewButton_10.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=10;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_10.setBounds(275, 166, 89, 23);
contentPane.add(btnNewButton_10);
JButton btnNewButton_11 = new JButton("I 11");
btnNewButton_11.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
o=11;
itemset newset=new itemset();
newset.dispose();
First newfirst=new First();
newfirst.setVisible(true);
}
});
btnNewButton_11.setBounds(275, 212, 89, 23);
contentPane.add(btnNewButton_11);
JButton btnNewButton_12 = new JButton("MAIN");
btnNewButton_12.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
SimpleLR n=new SimpleLR();
n.frame.setVisible(true);
}
});
btnNewButton_12.setBounds(323, 20, 89, 33);
contentPane.add(btnNewButton_12);
}
}