private void txtXDimensionFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtXDimensionFocusLost
        if (txtXDimension.getText().matches("[0-9]+")) {
            if (Integer.parseInt(txtXDimension.getText()) != 0) {
                moduleWidth = Integer.parseInt(txtXDimension.getText());
                encodeData();
            } else {
                txtXDimension.setText(String.valueOf(moduleWidth));
            }
        } else {
            txtXDimension.setText(String.valueOf(moduleWidth));
        }
    }
private void txtXDimensionFocusLost ( java . awt . event . FocusEvent evt ) { if ( txtXDimension . getText ( ) . matches ( "[0-9]+" ) ) { if ( Integer . parseInt ( txtXDimension . getText ( ) ) != 0 ) { moduleWidth = Integer . parseInt ( txtXDimension . getText ( ) ) ; encodeData ( ) ; } else { txtXDimension . setText ( String . valueOf ( moduleWidth ) ) ; } } else { txtXDimension . setText ( String . valueOf ( moduleWidth ) ) ; } }
GEN-LAST:event_txtBorderWidthFocusLost