added printMessage method to print a Message to the TextArea