How to catch a button event that is in a Panel
I'm developing a little application to try some things but I got stuck, so I came to the forum for some help!
I tried googling but I couldn't find any info...
I have the following situation:
I have a class called userPanel, that class extends the Panel class. I draw some labels and buttons in that panel using the netbeans's gui editor...
I also have a Form, and I added to that form instances of my "userPanel" class. The problem is that I don't know how to catch the button events of the buttons that are in the panel.
To change for example the text in the labels I just use a "setLabels" method written by me... but I don't know how to work with buttons...
How can I do to solve this???? Any ideas??
Thanks in advance!!