Ofcourse, you can make a JPanel listen to events. If you have a button and textarea in the JPanel, then whenever an event occurs in the text area or button, the same action takes place.
Joined: Apr 04, 2004
My deal is, say I have 2 classes which extend JPanel in one big JPanel. I want to make it so that when JPanel A is modified it automatically updates JPanel B, but I'd rather not give JPanel A a pointer to JPanel B. My dream is that from the big JPanel I could add an action to A which updates B.