Reputation: 11
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
Reputation: 168815
Using a (possibly nested) Layout. See Using Layout Managers in the Java Tutorial for further details.
Upvotes: 1