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