Instead of making the JTextArea entirely inside a method, declare say "private JTextArea outputbox;" and then initialise it afterwards.
Currently the scope of output box is local to...