@Override
    public void run() {
        String[] datos = new String[14];
        String[] temp = new String[2];
        try {

            URL pagina = new URL("http://chapuzas.comocreartuweb.es/documentos/datos.txt");
            HttpURLConnection con = (HttpURLConnection) pagina.openConnection();
            con.connect();
            InputStreamReader in = new InputStreamReader((InputStream) con.getContent());
            BufferedReader buff = new BufferedReader(in);

            for (int i = 0; i < 14; i++) {
                temp = buff.readLine().split(" ");
                datos[i] = temp[1];
            }
            txtSalarioBase.setText(datos[0]);
            txtTransporte.setText(datos[1]);
            txtVestuario.setText(datos[2]);
            txtPeligrosidad.setText(datos[3]);
            txtTrienio.setText(datos[4]);
            txtQuinquenio.setText(datos[5]);
            txtHoraNocturna.setText(datos[6]);
            txtHoraFestiva.setText(datos[7]);
            txtHoraArma.setText(datos[8]);
            txtNochebuena.setText(datos[9]);
            txtKilometraje.setText(datos[10]);
            txtRadio.setText(datos[11]);
            txtRadioBasica.setText(datos[12]);
            txtHorasConvenio.setText(datos[13]);
        } catch (IOException ioe) {
            JOptionPane.showMessageDialog(null,
                    "Chungo, Ha fallado la conexion",
                    "Error",
                    JOptionPane.ERROR_MESSAGE);
        } finally {
            btnObtenerDatos.setText("Obtener datos");
            hilo = null;
        }
    }