problem in using swing application

hi friends, iam developed a swing gui in that iam going to give server port number and number of clients handled by the server.Then i press submit button.The action am writed for the submit button is my server program reads the configuration details from the file and then server socket establishes and waits in the accept socket.At this stage,my swing gui gets freezed.... but i dont need that.... coz in that iam using the other button which is used to stop the server program.... can anyone tell me whats the problem and whats the solution?

[550 byte] By [83Krisha] at [2007-11-27 8:36:15]
# 1
You need to use a separate Thread for your Socket connection so you don't block the GUI: http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html
camickra at 2007-7-12 20:33:08 > top of Java-index,Java Essentials,Java Programming...
# 2
It seems to be a lot of things together, can you give us a more precise hint? (Maybe a fragment of code?)
albolocuraa at 2007-7-12 20:33:08 > top of Java-index,Java Essentials,Java Programming...