on 12-12-2005 1:59 PM
Hello,
i have made a swing based GUI. It sends a request to the local server and the server keep sending response to it.
Basically request is sent once, but response is in the form of stream.
But my problem is that GUI hangs after getting the response from the server, because the socket is still getting the reponse. how can I get rid of this problem?
regards,
Saurabh
Hi Saurabh,
Tom is right, threads are the way. There is even a dedicated swing api (as far as i can remember), which lets you exec. lengthy tasks in a tread and be notified (the gui) when the task quits.
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
work with threads
When using network functionalities you should always use separate threads.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.