arunthathi 0 Newbie Poster

i have developed a netbeans 6.7.1 desktop application..i want to make it run automatically whenever i connect to a local network and stop whenever i disconnect from the network..is there any way to make it possible???anyone pls help me......