basic chatbox with simple gui programmed in java