Question

I am making a forum programmed in Java and I'm starting to work on getting posts and threads right. For GUI I'm using the netbeans guy builder. I plan to put a text area inside a pane, along with the user's avatar and some other info, as a post. If I understand text areas right, they won't autoresize, instead they'll show scroll bars. Can I make them auto resize?

The same thing goes for jpanels, can I make them auto resize as well?

Was it helpful?

Solution

Ok, I figured it out, but I feel kinda stupid. Both JTextAreas, and JPanels auto-resize on their own, unless they are wrapped in a JScrollPanel. So just watch how you place JScrollPanels.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top