I had to create some JFrame components dynamically using code and not the palette to my Swing application because they need to be hidden and displayed when needed.
What I wanted to know is how do I add events to these components dynamically using code as well? I only know how to do it with the palette. I would to click the button I added and search the database. I am using NetBeans IDE 6.9.1.