I have a jTable
and I want that at the moment of double clicking, I do not edit the table since I have a part of the code in which it is valid that only numbers can be entered and it does, but when I double click on the table allows me to put letters.
I have this part of code:
private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {
if (evt.getClickCount() == 1) {
System.out.println("Se ha hecho un click");
}
if (evt.getClickCount() == 2) {
System.out.println("Se ha hecho un click");
}
// TODO add your handling code here:
}