public void setString() {
		// An input window asking for a string
		String txt = JOptionPane.showInputDialog("Ange en text med bokstäver, siffror och tecken");

		// An array of Array7x7 object to hold characters.
		// The size of the array must be at least 5.
		if (txt.length() < 4) {
			txtArray = new Array7x7[5];
		} else {
			// The last position in array shall contain a space sign
			txtArray = new Array7x7[txt.length() + 1];
		}

		// Inserts the graphical counterpart for each character
		// If the string is less than 4 it will be filled with space up to the
		// fifth position.
		if (txt.length() < 4) {
			for (int i = 0; i < txt.length(); i++) {
				txtArray[i] = new Array7x7(ArrayChars.getChar(txt.charAt(i)).getArray());
			}
			for (int j = txt.length(); j < txtArray.length; j++) {
				txtArray[j] = new Array7x7(ArrayChars.getChar(' ').getArray());
			}
		} else {
			for (int i = 0; i < txtArray.length; i++) {
				txtArray[i] = new Array7x7(ArrayChars.getChar(txt.charAt(i)).getArray());
				// Last position will contain a space sign
				if (i == txtArray.length - 2) {
					txtArray[i + 1] = new Array7x7(ArrayChars.getChar(' ').getArray());
					i++;
				}
			}
		}
	}