java - How make method in GUI running in background -


i want create lan chat app udp method transfer information. here, have problem app.i have 2 essential guis. general gui , private chat gui. in general gui there jlist displays online users (users playing app). , in private chat gui, have jtext displays chat history.

my problem is, how make method runs continuously, can update jlist inform list of online users , jtext inform every chat came , sent back.

have @ jgroups, want, , think have sample chat application.

http://www.jgroups.org/


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -