J
JTL.zheng
I am using SwingWorker to make a new thread in Swing GUI
(someting about SwingWorker
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
)
I use this thraed to run a ServerSocket object
when using it's method accept() to wait a socket connect
this thread stop here for waiting
how can I do to stop this thread if I don't want to wait any more?
I want to click a button and stop this thread....
how can I do that?
Thank you very much in advance.
(someting about SwingWorker
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
)
I use this thraed to run a ServerSocket object
when using it's method accept() to wait a socket connect
this thread stop here for waiting
how can I do to stop this thread if I don't want to wait any more?
I want to click a button and stop this thread....
how can I do that?
Thank you very much in advance.