public void printSymbol(Integer type) {
		String string = program.getMainPanel().getTextField().getText();
		string = string.substring(0, program.getMainPanel().getTextField()
				.getCaretPosition());
		switch (type) {
		case 0:
			string = string + "*";
			break;
		case 1:
			string = string + "+";
			break;
		case 2:
			string = string + "!";
			;
			break;
		case 3:
			string = string + "|";
			;
			break;
		case 4:
			string = string + "/";
			;
			break;
		case 5:
			string = string + "^";
			;
			break;
		}
		string = string
				+ program
						.getMainPanel()
						.getTextField()
						.getText()
						.substring(
								string.length() - 1,
								program.getMainPanel().getTextField().getText()
										.length());
		program.getMainPanel().getTextField().setText(string);
		program.getMainPanel().getTextField().requestFocus();
	}