Hi,
I have created a table with id as a primary key.
When I am entering same id again & I am getting following errors:
MySQLIntegrityConstraintViolationException: Duplicate entry
I am catching SQLException:
catch(SQLException se){
      //Handle errors for JDBC
      JOptionPane.showMessageDialog(null, "Testing");
      se.printStackTrace();
   }
The control enters into catch block & 
Its printing "Testing". So exception is caught. So why i am getting this error. Some body please guide me how to handle this error.
Zulfi.