Chat like component

I’m building a chat UI and so far is going well but I’m struggling with the chat history part. If I use a ListSelect long lines run out of the screen without horizontal scrolls.

Using Table is about the same with a scroll bar.

I’m trying to make it wrap instead of the need of scroll bars. I was able to make it work with TextArea but lacks trhe control to remove old items.

Any suggestions?

I would create chat view based on GridLayout, where each GridLayout cell is chat entry. It requires a bit work, since you need couple of custom views / components. But it should be totally possible to do fully in Java without client side extensions. I would create custom component for chat entry, and custom component for chat history (which is based GridLayout).

The chat entry component I have working so far. I’ll give the GridLayout a try.