ohhh, i think heres a misunderstanding: i dont want to create a commercial or official chat system. im not that good and i dont have the time.
its only a bigger homework, but i want to realize a little more than the core aspects of a text sender/receiver.
Nope, that's exactly what I was thinking of; my point is that this is something that
- has been done many many times
- is available for free in lots of guises
- has been thought about and experimented with by many others
so that you should just be able to go and grab a free 3rd part lib; I would be surprised if there aren't many tens of "JChat extends JPanel" (sic) implementations that you just .add(...) to your swing GUI. Or AWT versions.
I'm suggesting that you setup a simple facade and then play with different ones rather than doing the work yourself and/or being limited to what UI you think up
. Whatever ever UI's are common and popular are more likely to be represented in such 3rd party libs. Although you miight find all the best ones have the GPL and you may not be able to use GPL