Results 1 to 3 of 3
Thread: Thread and GUI Window!
- 05-12-2008, 02:51 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 42
- Rep Power
- 0
Thread and GUI Window!
In a chatting application,two computers are connected.IF the application is developed using the threads,When the user on one computer closes the chatwindow then how the thread can keep the record that the chatwindow associated with this thread is active or closed?
Can you give me some idea?
- 05-13-2008, 05:01 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You can simply maintaining a flag to do this. I mean a variable. In each thread request check the flag status.
- 05-14-2008, 08:06 AM #3
If you are using a TCP socket, the socket on the other machine will get notified if you sever the connection.
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Similar Threads
-
drawing window
By BlitzA in forum New To JavaReplies: 1Last Post: 01-15-2009, 12:55 PM -
data from the main/GUI thread to another runnin thread...
By cornercuttin in forum Threads and SynchronizationReplies: 2Last Post: 04-23-2008, 10:30 PM -
If JNI thread call the java object in another thread, it will crash.
By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM -
drawing window
By BlitzA in forum Advanced JavaReplies: 0Last Post: 12-30-2007, 05:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks