How to set size to this Scrollpane?
https://code.sololearn.com/cr76tA4L1I0W/?ref=app While the frame initializes at preferred size, the Scrollpane grows to full available space. Besides that, no other layout component is shown (or respected). The intent is to mirror a console, to describe it in borderlayout, placing the text in the center and having an input reader at page_end. There is this text based adventure that I want to run on its own. I wrote this to text the GUI not waiting for the game mechanics all the time. I'm very thankful for your help even if its just keywords to Google :) Ps: I hope that code snippet fits the guidelines of this community, I copy pasted it and someone would complain, if there was anything missing as well... ^^° Note: BoxLayout is set on X-axis cause I thought it might at least put the components side by side if not on top of each other... Didn't work. Update: used sololearn search with "Scrollpane", came up with two results, both didn't work