• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame not refreshing

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
We have developed a chat kinda application. This is primarily meant to send some message to 1/many people at the same time.
The GUI is something of this sort
----------------------------------------|
|
|
|
|
----------------------------------------|
|
|
|
|
----------------------------------------
The user types something in the lower window(which is is text area). Now this massage may be meant for a group of people(liek some 200 ppl). So what the program does is that it opens a socket to each of these clients. However we have written the code in such a way that, whatever the user types in the lower window is reflcted to the upper window, and the process of opening the socket connections and sending the message to the respective clients starts only after that. But however the upper window gets reflected with the message only after the message is delivered to the clients. So when the number of clients is large, a noticable delay is noticed between the interval when some message is type in the lower windon and the message gets actually reflected to the upper window.. Y is this delay??
someone help me out
... thanks in advance
....saj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!