jasper
jasper

Reputation: 11

Combining JTextarea output of another class to the JTextArea of main class frame?

I have one class that displays the output into a JTextArea. Meaning after successful run, it will display the output in a text area.

I have also one main class that combines classes together with several buttons to initiate execution of code in specific classes. This main class creates a GUI with several buttons. Now I need the above JTextArea to incorporated into the main frame.

How do I do this?

Upvotes: 0

Views: 200

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168815

Using a (possibly nested) Layout. See Using Layout Managers in the Java Tutorial for further details.

Upvotes: 1

Related Questions