title: JTable and MySQL Issue
body: <p>I am not sure why my code does not function well, it may be something rather easy to fix but I wanted to get input from the page, I get an error which says that the item selected cannot be cast to an object in this case the column selected</p>
  
  <pre><code>void delete() throws SQLException{
      int input = JOptionPane.showConfirmDialog(null, "Are you sure you want to delete?", "Delete", JOptionPane.YES_NO_OPTION);
      if (input == JOptionPane.YES_OPTION) {
          DVDItem user = (DVDItem)tableDVD.getModel().getValueAt(tableDVD.getSelectedRow(), tableDVD.getSelectedColumn());
          mc.deleteItem(user.getkey());
      }
      updateList();
  }
  </code></pre>
  
  <p>how do I make it so it would convert it to the DVDItem object and then delete by accessing its key, thanks</p>