private void refreshScriptActions() {
		Iterator<String> it = vetScript.iterator();

		// Skip "serialNumber".
		if (it.hasNext()) {
			it.next();
		}

		// Get number of actions and discovers how many digits it has.
		int total = vetScript.size();
		int nDigits = 0;
		while (total > 0) {
			total = total / 10;
			nDigits++;
		}

		// Aux variables.
		int exp = 1, index = 1;
		nDigits--;
		dataModel.removeAllElements();

		// Add actions.
		while (it.hasNext()) {
			String s = "";
			while (s.length() < (nDigits)) {
				s = s + "0";
			}
			dataModel.add(index - 1, s + index + ". " + it.next());
			index++;
			if (index == Math.pow(10, exp)) {
				nDigits--;
				exp++;
			}
		}
	}