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?
You can simply maintaining a flag to do this. I mean a variable. In each thread request check the flag status.
If you are using a TCP socket, the socket on the other machine will get notified if you sever the connection.