Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
javafanboy opened this issue Oct 6, 2024 · 1 comment
Open

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

javafanboy opened this issue Oct 6, 2024 · 1 comment

Comments

@javafanboy
Copy link

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
Copy link
Owner

mabe02 commented Oct 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants