private void XspeedTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_XspeedTFKeyTyped
        boolean OK = false;
        if((evt.getKeyChar()=='-')&&(XspeedTF.getText().equals("")))OK = true;
        if((evt.getKeyChar()=='.')&&(!XspeedTF.getText().equals("")&&!XspeedTF.getText().equals("-")))OK = true;
        if((evt.getKeyChar()>='0')&&(evt.getKeyChar()<='9'))OK = true;
        if(!OK){
            evt.setKeyChar('\0');
        } 
    }//GEN-LAST:event_XspeedTFKeyTyped