Network GUI

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.

[652 byte] By [Toadywarta] at [2007-11-26 15:01:30]
# 1
> I have tried many different> ways of implementing this using threading etc., but> yet the GUI's always become unresponsiveThen you haven't used threading at all, you just think you have. Somewhere along the line you have to call Thread.start().
ejpa at 2007-7-8 8:50:27 > top of Java-index,Archived Forums,Socket Programming...
# 2
it seems u didn't use threads at all if so u should show ur code here
Mostafa.Hashema at 2007-7-8 8:50:27 > top of Java-index,Archived Forums,Socket Programming...