private void jTextField2KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyTyped
if(!Character.isDigit(evt.getKeyChar())){
    evt.consume();
}// TODO add your handling code here:
    }//GEN-LAST:event_jTextField2KeyTyped