-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactsMergeMainForm.java
More file actions
121 lines (97 loc) · 3.27 KB
/
ContactsMergeMainForm.java
File metadata and controls
121 lines (97 loc) · 3.27 KB
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
package ContactsMerge;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Created by tjones on 11/3/2015.
*/
public class ContactsMergeMainForm {
private JTextField username;
private JTextField password;
private JComboBox comboBox1;
private JPanel ContactsMergeMainFormPanel;
private JTable table1;
private JTextPane textPane1;
private JTextPane textPane2;
private JButton getContactsButton;
public ContactsMergeMainForm() {
getContactsButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
System.out.println("button pushed: " + e.getActionCommand());
System.out.println("username=" + username.getText());
System.out.println("password=" + password.getText());
System.out.println("comboBox1=" + comboBox1.getSelectedItem());
System.out.println("comboBox2=" + comboBox1.getSelectedItem());
}
});
}
public static void buildMainForm(String[] args) {
JFrame frame = new JFrame("ContactsMergeMainForm");
frame.setContentPane(new ContactsMergeMainForm().ContactsMergeMainFormPanel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
public JTextField getUsername() {
return username;
}
public void setUsername(JTextField username) {
this.username = username;
}
public JTextField getPassword() {
return password;
}
public void setPassword(JTextField password) {
this.password = password;
}
public JComboBox getComboBox1() {
return comboBox1;
}
public void setComboBox1(JComboBox comboBox1) {
this.comboBox1 = comboBox1;
}
public JPanel getContactsMergeMainFormPanel() {
return ContactsMergeMainFormPanel;
}
public void setContactsMergeMainFormPanel(JPanel contactsMergeMainFormPanel) {
ContactsMergeMainFormPanel = contactsMergeMainFormPanel;
}
public JTable getTable1() {
return table1;
}
public void setTable1(JTable table1) {
this.table1 = table1;
}
public JTextPane getTextPane1() {
return textPane1;
}
public void setTextPane1(JTextPane textPane1) {
this.textPane1 = textPane1;
}
public JTextPane getTextPane2() {
return textPane2;
}
public void setTextPane2(JTextPane textPane2) {
this.textPane2 = textPane2;
}
public JButton getGetContactsButton() {
return getContactsButton;
}
public void setGetContactsButton(JButton getContactsButton) {
this.getContactsButton = getContactsButton;
}
@Override
public String toString() {
return "ContactsMergeMainForm{" +
"username=" + username +
", password=" + password +
", comboBox1=" + comboBox1 +
", ContactsMergeMainFormPanel=" + ContactsMergeMainFormPanel +
", table1=" + table1 +
", textPane1=" + textPane1 +
", textPane2=" + textPane2 +
", getContactsButton=" + getContactsButton +
'}';
}
}