Separate thread with infinite loop blocking gui update Netbeans

This would be my first program using threads so would appreciate any help i can get. Created a new Netbeans Java Desktop App and would like to know where at what point in the automatically generated code can I instantiate and run my runnable interface class so that it would not block the gui part of the application (event dispatcher thread i think).

This runnable thread of mine would contain an infinite loop listening for incoming UDP packets.

Thank you for all the help ! ankit


Make it an asynchronous thread and call it whenever you want it to start running.

Need Your Help

How to create android apps using Html and maintain those html pages using a management system?

android html

I want to know whether is it possible that if i create an android app using html, then later if i want to update the pages of that app i can do it from an online resource and not give an apk update

Unable to Compile with ImportMany attribute

c# .net mef

As to total MEF newbie, I'm having a problem with my first test of MEF. My problem code is below-