-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathWsd.java
134 lines (118 loc) · 5.37 KB
/
Wsd.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
package wjw.cron.ex;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import java.awt.Insets;
import javax.swing.JCheckBox;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import javax.swing.border.BevelBorder;
import javax.swing.border.TitledBorder;
public class Wsd extends JFrame {
private JPanel contentPane;
private JTextField textField;
private final JButton btnNewButton_1 = new JButton("New button");
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Wsd frame = new Wsd();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public Wsd() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 754, 538);
contentPane = new JPanel();
contentPane.setBorder(new TitledBorder(null, "www", TitledBorder.LEADING, TitledBorder.TOP, null, null));
setContentPane(contentPane);
GridBagLayout gbl_contentPane = new GridBagLayout();
gbl_contentPane.columnWidths = new int[]{0, 0, 0, 0, 0};
gbl_contentPane.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
gbl_contentPane.columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, Double.MIN_VALUE};
gbl_contentPane.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};
contentPane.setLayout(gbl_contentPane);
JLabel lblNewLabel = new JLabel("New label");
GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
gbc_lblNewLabel.gridx = 0;
gbc_lblNewLabel.gridy = 0;
contentPane.add(lblNewLabel, gbc_lblNewLabel);
textField = new JTextField();
GridBagConstraints gbc_textField = new GridBagConstraints();
gbc_textField.gridwidth = 2;
gbc_textField.insets = new Insets(0, 0, 5, 5);
gbc_textField.fill = GridBagConstraints.HORIZONTAL;
gbc_textField.gridx = 2;
gbc_textField.gridy = 0;
contentPane.add(textField, gbc_textField);
textField.setColumns(10);
JCheckBox chckbxNewCheckBox = new JCheckBox("New check box");
GridBagConstraints gbc_chckbxNewCheckBox = new GridBagConstraints();
gbc_chckbxNewCheckBox.insets = new Insets(0, 0, 5, 5);
gbc_chckbxNewCheckBox.gridx = 1;
gbc_chckbxNewCheckBox.gridy = 2;
contentPane.add(chckbxNewCheckBox, gbc_chckbxNewCheckBox);
JCheckBox chckbxNewCheckBox_1 = new JCheckBox("New check box");
GridBagConstraints gbc_chckbxNewCheckBox_1 = new GridBagConstraints();
gbc_chckbxNewCheckBox_1.insets = new Insets(0, 0, 5, 5);
gbc_chckbxNewCheckBox_1.gridx = 1;
gbc_chckbxNewCheckBox_1.gridy = 3;
contentPane.add(chckbxNewCheckBox_1, gbc_chckbxNewCheckBox_1);
JCheckBox chckbxNewCheckBox_2 = new JCheckBox("New check box");
GridBagConstraints gbc_chckbxNewCheckBox_2 = new GridBagConstraints();
gbc_chckbxNewCheckBox_2.insets = new Insets(0, 0, 5, 5);
gbc_chckbxNewCheckBox_2.gridx = 1;
gbc_chckbxNewCheckBox_2.gridy = 4;
contentPane.add(chckbxNewCheckBox_2, gbc_chckbxNewCheckBox_2);
JRadioButton rdbtnNewRadioButton = new JRadioButton("New radio button");
GridBagConstraints gbc_rdbtnNewRadioButton = new GridBagConstraints();
gbc_rdbtnNewRadioButton.anchor = GridBagConstraints.EAST;
gbc_rdbtnNewRadioButton.insets = new Insets(0, 0, 5, 10);
gbc_rdbtnNewRadioButton.gridx = 3;
gbc_rdbtnNewRadioButton.gridy = 6;
contentPane.add(rdbtnNewRadioButton, gbc_rdbtnNewRadioButton);
JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("New radio button");
GridBagConstraints gbc_rdbtnNewRadioButton_1 = new GridBagConstraints();
gbc_rdbtnNewRadioButton_1.anchor = GridBagConstraints.EAST;
gbc_rdbtnNewRadioButton_1.insets = new Insets(0, 0, 5, 10);
gbc_rdbtnNewRadioButton_1.gridx = 3;
gbc_rdbtnNewRadioButton_1.gridy = 7;
contentPane.add(rdbtnNewRadioButton_1, gbc_rdbtnNewRadioButton_1);
JRadioButton radioButton = new JRadioButton("New radio button");
GridBagConstraints gbc_radioButton = new GridBagConstraints();
gbc_radioButton.insets = new Insets(0, 0, 5, 10);
gbc_radioButton.anchor = GridBagConstraints.EAST;
gbc_radioButton.gridx = 3;
gbc_radioButton.gridy = 8;
contentPane.add(radioButton, gbc_radioButton);
GridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();
gbc_btnNewButton_1.anchor = GridBagConstraints.EAST;
gbc_btnNewButton_1.insets = new Insets(0, 0, 0, 5);
gbc_btnNewButton_1.gridx = 2;
gbc_btnNewButton_1.gridy = 16;
contentPane.add(btnNewButton_1, gbc_btnNewButton_1);
JButton btnNewButton = new JButton("New button");
GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
gbc_btnNewButton.anchor = GridBagConstraints.EAST;
gbc_btnNewButton.gridx = 3;
gbc_btnNewButton.gridy = 16;
contentPane.add(btnNewButton, gbc_btnNewButton);
}
}