I'm trying to create a chat app GUI with the message bubbles and all that. I've managed to make the bubbles with a JTextArea and a custom border.
Now, when I try to add them to a BoxLayout(Closest thing to a vertical FlowLayout I could find) the text Areas never wrap the text.
I had to set the Maximum size to equal the Preferred size to stop the layout from expanding the JTextArea. Maybe it has something to do with that?s