一些基础的关于java jdbc的程序代码
tfName = new JTextField();
tfName.setBounds(new Rectangle(89, 17, 173, 27));
}
return tfName;
}
private JComboBox getCbRegion() {
if (cbRegion == null) {
String[] str = { "请选择", "亚洲", "欧洲", "非洲", "北美洲", "南美洲", "大洋洲",
"南极洲" };
cbRegion = new JComboBox(str);
cbRegion.setBounds(new Rectangle(360, 17, 229, 28));
}
return cbRegion;
}
private JTextField getTfArea() {
if (tfArea == null) {
tfArea = new JTextField();
tfArea.setBounds(new Rectangle(89, 61, 173, 27));
}
return tfArea;
}
private JTextField getTfPopu() {
if (tfPopu == null) {
tfPopu = new JTextField();
tfPopu.setBounds(new Rectangle(360, 61, 229, 28));
}
return tfPopu;
}
private JTextField getTfGDP() {
if (tfGDP == null) {
tfGDP = new JTextField();
tfGDP.setBounds(new Rectangle(89, 105, 173, 27));
}
return tfGDP;
}
private JButton getBtnAdd() {
if (btnAdd == null) {
btnAdd = new JButton();