adds Java to link text area and button to layout