rpbeltran / java-secure-lan-chat

Encrypted LAN chat client
The Unlicense
0 stars 0 forks source link

Message Length #9

Closed legomaniack closed 9 years ago

legomaniack commented 9 years ago

If the message length exceeds the size of the box, it just kinda breaks everything.

The current system is basically set up to handle that, but it needs two things.

lekro commented 9 years ago

We should implement a line wrapping function (or just enable it because Java might already have one built in)

... Oh, that's what you're talking about xP

legomaniack commented 9 years ago

Yeah, I made the system so that the list of lines on the screen is separate from the actual incoming messages, but I haven't bothered to actually tell it to split it up yet.

lekro commented 9 years ago

Well done on the chat system btw.

lekro commented 9 years ago

Ok, chats are working for me. Do you want to test on your side as well?

legomaniack commented 9 years ago

We should probably swap the JTextArea to some kinda scroll pane. There are ways to handle line wrapping automagically, and the only thing stopping me from doing that was that it would break horizontal scrolling; a scrolling view would take care of that.