一些基础的关于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();
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Java连接数据库增删改查(4)在线全文阅读。
相关推荐: