• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFrame not refreshing

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic