im working on a tcp sniffer project. at first, ihave created the system using JCreator and it works fine without any interface. Next, im trying to create the user interface for it using NetBean 7.1. of course i have to break the code into parts and pieces to be fitted into the button function. It seems that when i run the program, it doesn't produce any output but keeps on running till manually stopped. it happen when i tried to insert the 'open device' code. another part that i suspected to cause the problem is 'Thread.sleep(25);' part..Before inserting that part, i tried to run and it produces the output which is the frame, button, etc..
I have attached the program along with it. badly need any help that i can get from here.