I need some help registering events. I have a JFrame and in that there are some panels. Now one of the panels has a couple of buttons (plus many other stuff). Since there was a lot of code for this I put this panel in a different class and just made an object and added it in the main JFrame. The problem is when I click a button I want the event sent to the main JFrame (so then depending on the button pressed ill add the new panel and remove the other) and not within that panel. Now since I have made an object out of this panel i'm having problems sending the event back to the parent.
Thanks for the help.