paredes_mynor
asked on
Which event identifies the close or remove of a JPanel?
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.
Thanks,
Mynor.
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.
Thanks,
Mynor.
why not disable jlabels2 while tx is still in progress, re-enableing when it is completed.
>>If I press the jlabel2, it will activate the jpanel2, but before that...
Simply disable the label until the processing has finished or intercept the mouse event and prompt to save
Simply disable the label until the processing has finished or intercept the mouse event and prompt to save
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
objects :)
ASKER
Thanks again you guys!!!
Thanks for closing :)
8-)
:)