mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.3k stars 243 forks source link

Creating multi-line text box that fill the whole panel? #616

Open javafanboy opened 1 month ago

javafanboy commented 1 month ago

I have added a Linear layout to my panel and would like it to automatically fit the sizes of components for me but it seems like a Multi-line textbox must be created with a Size (or content - in my case I would like to adopt the width of it to the width of the textbox and not the other way around) - is there any way around this?

mabe02 commented 1 month ago

Try BorderLayout on the panel and make your component the CENTER location. That will make the component as big as the container component.