private void setTextArea(boolean scriptDefault) {
		boolean isHintButton = activityButton.isActionHint();
		boolean isScriptButton = activityButton.isActionScript();
		boolean isGradeButton = activityButton.isActionGrade();
		if (scriptDefault || isHintButton || isScriptButton || isGradeButton) {
			textArea.setEnabled(true);
			areaLabel.setEnabled(true);
			textArea.requestFocusInWindow();
			textArea.setCaretPosition(0);
		}
		else {
			textArea.setEnabled(false);
			areaLabel.setEnabled(false);
		}
		if (isHintButton) {
			areaLabel.setText("Enter hint (support plain text and HTML) :");
			textArea.setText(ModelerUtilities.deUnicode((String) activityButton.getClientProperty("hint")));
		}
		else if (isScriptButton || scriptDefault) {
			areaLabel
					.setText("<html>Enter scripts in the following format:<br><font face=\"Courier New\" size=\"-2\">(native)script:[component type]:[index or UID]:[script body]</font></html>");
			textArea.setText((String) activityButton.getClientProperty("script"));
		}
		else if (isGradeButton) {
			areaLabel.setText("Enter the URI at which the report will be graded:");
			textArea.setText((String) activityButton.getClientProperty("grade_uri"));
		}
		else {
			areaLabel.setText(null);
			textArea.setText(null);
		}
	}