Hi, I am developing a simple multi-threaded server.
I have one button to start listening on a given port(START), and another one to stop listening(STOP).
I can't seem to get them to work properly, and i have reverted to killing the thread on STOP and creating a new one every time START is pushed.
I know there is a way to use wait() and notify(), but when i try, the gui freezes up
Please let me how to get this to work better.