Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- while (rscheck.next()) {
- i++;
- }
- if (i != 0) {
- JOptionPane.showMessageDialog(null, "This brand is not be delete!", "Title!", JOptionPane.WARNING_MESSAGE);
- } else {
- String q4 = "DELETE FROM avtozavodk.Brand WHERE idBrand='" + quiry.brandid + "'";
- Query.Delet(q4);
- String q5 = "SELECT NameBrand,Country FROM avtozavodk.Brand";
- ResultSet rs5;
- rs5 = Query.Select(q5);
- TableBrand.setModel(DbUtils.resultSetToTableModel(rs5));
- }
- }catch (SQLException e1) {
- e1.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement