title: JUnit in NetBeans
body: <p>I've coded a <a href="http://en.wikipedia.org/wiki/Swing_%28Java%29" rel="nofollow">Swing</a> application. Now I've got to test this big application using <a href="http://en.wikipedia.org/wiki/JUnit" rel="nofollow">JUnit</a> testing in <a href="http://en.wikipedia.org/wiki/NetBeans" rel="nofollow">NetBeans</a>. I've learned some basics, but I'm unable to figure out how to trigger the events automatically. If someone worked on it, they can help. You can also redirect me to some sources at least. You know, in a Swing application you'll have buttons, etc. which generate events which are methods and I need to trigger the events. So, is there a way to test the entire software?  </p>