Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to listen to button click in a panel?

843806Jan 4 2008 — edited Jan 4 2008
I need to create actionListenr in a JFrame for two buttons inside of a JPanel.
The JPanel is in the JFrame
The JPanel has two buttons which will import/export stuffs.
The JFrame will be updated when the buttons import/export.
I already finished the JPanel part, the buttons work well and are able to do what I want them to do.
But how do I make the JFrame to be able to listen to what's going on with the JPanel? How does the JFrame know when the buttons are clicked and there is something new imported?

Thank you if anyone has some advice to offer and please feel free to ask me if something i said is not clear enough.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2008
Added on Jan 4 2008
2 comments
341 views