package ui;

import handler.IssueDetailsContentHandler;
import javafx.scene.control.TextArea;
import javafx.scene.web.HTMLEditor;

public class CommentsEditBox extends TextArea{
	private IssueDetailsContentHandler commentHandler;
	public CommentsEditBox(IssueDetailsContentHandler handler){
		this.commentHandler = handler;
	}
	
}

@@ -67,265 +67,937 @@
 afx.
-scene.control.TextArea;%0Aimport javafx.scene.web.HTMLEditor;%0A%0Apublic class CommentsEditBox extends TextArea%7B%0A%09private IssueDetailsContentHandler commentHandler;%0A%09public CommentsEditBox(IssueDetailsContentHandler handler)%7B%0A%09%09this.commentHandler = handler;%0A%09%7D%0A%09
+geometry.Pos;%0Aimport javafx.scene.control.Button;%0Aimport javafx.scene.control.TextArea;%0Aimport javafx.scene.layout.HBox;%0Aimport javafx.scene.layout.VBox;%0A%0Apublic class CommentsEditBox extends VBox%7B%0A%09protected static final int ELEMENT_SPACING = 8;%0A%09protected static final String COMMENT_BTN_TXT = %22Comment%22;%0A%09private IssueDetailsContentHandler commentHandler;%0A%09private Button commentButton;%0A%09private TextArea commentText;%0A%09%0A%09public CommentsEditBox(IssueDetailsContentHandler handler)%7B%0A%09%09this.commentHandler = handler;%0A%09%09initialiseUIComponents();%0A%09%09setupLayout();%0A%09%7D%0A%09%0A%09private void initialiseUIComponents()%7B%0A%09%09commentButton = new Button(COMMENT_BTN_TXT);%0A%09%09commentText = new TextArea();%0A%09%7D%0A%09%0A%09private void setupLayout()%7B%0A%09%09this.setSpacing(ELEMENT_SPACING);%0A%09%09HBox buttonBox = new HBox();%0A%09%09buttonBox.setAlignment(Pos.BOTTOM_RIGHT);%0A%09%09buttonBox.getChildren().add(commentButton);%0A%09%09%0A%09%09getChildren().addAll(commentText, buttonBox);%0A%09%7D
 %0A%7D%0A

add button for new comment area