Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- americanoSmall.addActionListener(
- new ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- try {
- String query = "select ProductName, Price from product where ProductID = 24";
- java.sql.PreparedStatement pst = connection.prepareStatement(query);
- ResultSet rs = pst.executeQuery();
- table.setModel(DbUtils.resultSetToTableModel(rs));
- } catch (Exception e1)
- {
- e1.printStackTrace();
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement