Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top