Responsive network GUI

Hi, i am trying to write a method that connects to a server retrieves some information and returns a Socket object, while at the same time showing a GUI, which displays information about the networking process. This method needs to be called when a button is pressed in a seperate GUI. The Socket object must only return when the appropriate information is received from the server. I have tried many different ways of implementing this using threading etc., but yet the GUI's always become unresponsive, however, this method works if it is called by itself, instead of being called when a button is pressed. Any ideas would be greatly appreciated.

[656 byte] By [Toadywarta] at [2007-11-26 15:01:44]
# 1
In my experience, GUIs become unresponsive when blocking or long winded operations are performed in the GUI event thread rather than in a worker thread. I sounds to me like the thread approach you used was flawed. You will need to post your code if you want a more detailed analysis.
sabre150a at 2007-7-8 8:50:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
Simple Threading example. Instead of simply using System.out.println(...) in the Runnable, you would create and use the Socket. http://forum.java.sun.com/thread.jspa?forumID=57&threadID=621226
camickra at 2007-7-8 8:50:42 > top of Java-index,Desktop,Core GUI APIs...