import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.EventQueue;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class MainWindow extends JFrame {
private JPanel contentPane;
private JTextField syainCode;
private JTextField syainName;
private JTextField syainFuri;
private JTextField syainSyozoku;
private JTextField syainSyozokuName;
private JComboBox<String> syainSex;
private JTextField syainKyuyo;
private JTextField syainTeate;
private JTextField syainKanri;
private JTextField syainKanriName;
private JTextField syainBirth;
private JButton checkButton;
private JButton updateButton;
private JButton cancelButton;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
MainWindow frame = new MainWindow();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public MainWindow() {
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent arg0) {
MainWindow.this.setLocationRelativeTo(null);
}
});
setResizable(false);
setTitle("\u793E\u54E1\u30DE\u30B9\u30BF\u30E1\u30F3\u30C6");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 468, 331);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
syainCode = new JTextField();
syainCode.setBounds(98, 29, 50, 19);
contentPane.add(syainCode);
syainCode.setColumns(10);
syainName = new JTextField();
syainName.setEnabled(false);
syainName.setColumns(10);
syainName.setBounds(98, 85, 202, 19);
contentPane.add(syainName);
syainFuri = new JTextField();
syainFuri.setEnabled(false);
syainFuri.setColumns(10);
syainFuri.setBounds(98, 108, 202, 19);
contentPane.add(syainFuri);
syainSyozoku = new JTextField();
syainSyozoku.setEnabled(false);
syainSyozoku.setColumns(10);
syainSyozoku.setBounds(98, 131, 42, 19);
contentPane.add(syainSyozoku);
syainSyozokuName = new JTextField();
syainSyozokuName.setEditable(false);
syainSyozokuName.setEnabled(false);
syainSyozokuName.setColumns(10);
syainSyozokuName.setBounds(153, 131, 147, 19);
contentPane.add(syainSyozokuName);
syainSex = new JComboBox<String>();
syainSex.setEnabled(false);
syainSex.setModel(new DefaultComboBoxModel<String>(new String[] {"\u7537\u6027", "\u5973\u6027"}));
syainSex.setBounds(98, 154, 80, 19);
contentPane.add(syainSex);
syainKyuyo = new JTextField();
syainKyuyo.setEnabled(false);
syainKyuyo.setColumns(10);
syainKyuyo.setBounds(98, 177, 96, 19);
contentPane.add(syainKyuyo);
syainTeate = new JTextField();
syainTeate.setEnabled(false);
syainTeate.setColumns(10);
syainTeate.setBounds(98, 200, 96, 19);
contentPane.add(syainTeate);
syainKanri = new JTextField();
syainKanri.setEnabled(false);
syainKanri.setColumns(10);
syainKanri.setBounds(98, 223, 42, 19);
contentPane.add(syainKanri);
syainKanriName = new JTextField();
syainKanriName.setEditable(false);
syainKanriName.setEnabled(false);
syainKanriName.setColumns(10);
syainKanriName.setBounds(153, 223, 147, 19);
contentPane.add(syainKanriName);
syainBirth = new JTextField();
syainBirth.setEnabled(false);
syainBirth.setColumns(10);
syainBirth.setBounds(98, 246, 82, 19);
contentPane.add(syainBirth);
checkButton = new JButton("\u78BA\u8A8D");
checkButton.setBounds(333, 28, 106, 21);
contentPane.add(checkButton);
updateButton = new JButton("\u66F4\u65B0");
updateButton.setEnabled(false);
updateButton.setBounds(333, 209, 106, 21);
contentPane.add(updateButton);
cancelButton = new JButton("\u30AD\u30E3\u30F3\u30BB\u30EB");
cancelButton.setEnabled(false);
cancelButton.setBounds(333, 247, 106, 21);
contentPane.add(cancelButton);
JLabel label = new JLabel("\u30B3\u30FC\u30C9");
label.setBounds(31, 32, 67, 13);
contentPane.add(label);
JLabel label_1 = new JLabel("\u6C0F\u540D");
label_1.setBounds(31, 88, 67, 13);
contentPane.add(label_1);
JLabel label_2 = new JLabel("\u30D5\u30EA\u30AC\u30CA");
label_2.setBounds(31, 111, 67, 13);
contentPane.add(label_2);
JLabel label_3 = new JLabel("\u751F\u5E74\u6708\u65E5");
label_3.setBounds(31, 249, 67, 13);
contentPane.add(label_3);
JLabel label_4 = new JLabel("\u6240\u5C5E");
label_4.setBounds(31, 134, 67, 13);
contentPane.add(label_4);
JLabel label_5 = new JLabel("\u6027\u5225");
label_5.setBounds(31, 157, 67, 13);
contentPane.add(label_5);
JLabel label_6 = new JLabel("\u7D66\u4E0E");
label_6.setBounds(31, 180, 67, 13);
contentPane.add(label_6);
Component label_7 = new JLabel("\u624B\u5F53");
label_7.setBounds(31, 203, 67, 13);
contentPane.add(label_7);
JLabel label_8 = new JLabel("\u7BA1\u7406\u8005");
label_8.setBounds(31, 226, 67, 13);
contentPane.add(label_8);
}
}