public static void validaDecimal(java.awt.event.KeyEvent evt,javax.swing.JTextField txt){
    char caract;
        // Convierte TODO ingreso a mayusculas
        String letra = (evt.getKeyChar() + "").toUpperCase();
        evt.setKeyChar(letra.charAt(0));
        caract = evt.getKeyChar();
        if(!(caract >= '0' && caract <= '9') && (caract != '.')){
                    evt.consume();}
    }