-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr.java
86 lines (77 loc) · 2.18 KB
/
pr.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
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class pr extends JFrame {
static int c = 1;
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
pr frame = new pr();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public pr() {
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);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds(183, 11, 216, 239);
contentPane.add(scrollPane);
JTextArea textArea = new JTextArea();
scrollPane.setViewportView(textArea);
JButton btnNewButton = new JButton("Click ME!!");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
int temp=0,temp2=0;
temp2=SimpleLR.in[c];
for(int i=0;i<temp2 ;i++){
if(SimpleLR.il[c][i]!=null && temp2>i && SimpleLR.il[c][0]!=null)
{temp=1;
textArea.append(SimpleLR.il[c][i]+"->"+SimpleLR.ir[c][i]+"\n");
}
}
if(temp==0){
textArea.append("SORRY NO PRODUCTION!!! ");
}
}
});
btnNewButton.setBounds(40, 41, 100, 50);
contentPane.add(btnNewButton);
JButton btnNewButton_1 = new JButton("Back**");
btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
pr newfirst=new pr();
newfirst.dispose();
it newset=new it();
newset.setVisible(true);
}
});
btnNewButton_1.setBounds(40, 161, 89, 41);
contentPane.add(btnNewButton_1);
}
/*public pr(int U) {
c = U;
initComponents();
}*/
}