Hello to everyone.
For example, I have two JLabels, and two JPanels. Each of the JLabel(jlbl1, jlbl2) activates each respective JPanel (jpanel1, jpanel2). Let's say, the jpanel1 is visible, and a QueryDataSet transaction is in the middle of the process, better said, is not posted to the database yet. If I press the jlabel2, it will activate the jpanel2, but before that, I want to be able to detect that there's a not finalized transaction and prompt the option of saving the information. Which event of the JPanel should take control of this?
I hope I presented the case in a understandable way.