how to listen to button click in a panel?
843806Jan 4 2008 — edited Jan 4 2008I 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.