Object params[] = { nameTextField.getText().trim(),
numTextField.getText().trim(),
priceTextField.getText().trim(),
idTextField.getText().trim() };
if (DbHelp.runUpdateSql(sql, params)) {
JOptionPane.showMessageDialog(AddOrUpdate.this, "修改记录成功!");
} else {
JOptionPane.showMessageDialog(AddOrUpdate.this, "修改记录失败!");
}
AddOrUpdate.this.dispose();// 释放对话框窗体
}
});
添加回答
举报
0/150
提交
取消