Moving from Command prompt to a gui. advice?

So here’s what I want to do for my first go.
I want to Have a frame with two panels one that holds the text to update the player whats happening (basically the command prompt)
The second holding button for the player to press, to make things happen.

I know that two classes right now have to have access to the JPanel with the buttons, however many classes need access to the text area.

would be making the gui in its own class be a good idea?
I’m also going to need to make a class that makes buttons that give access to buttons but how do I handle the event?

I understand how to make things happen when the event is press but I’m unsure how to do it in a case like this.

Thank-you once again for the advice and help everyone you all have made this journey that much better.