Hi:
I’m trying to delete an item from a MySQL table using this code:
public void buttonClick(ClickEvent event) {
Button boton=event.getButton();
if (boton==deleteItem){
container.removeItem(target); //target from an action
try {
container.commit();
} catch (UnsupportedOperationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
close(); //cloese the window where the button is
}
but I get this error:
any Ide awhy is this happening?