Is it possible to get the state of FormModel either changed or not as a whole form not by a property? I want to prompt user to save their changes if they move away from FormPage and FormModel has been changed.
Amad
Is it possible to get the state of FormModel either changed or not as a whole form not by a property? I want to prompt user to save their changes if they move away from FormPage and FormModel has been changed.
Amad
You'll need to do something like this:
OllieCode:void onFocusLost() { if (formModel.isDirty()) { // prompt user to save } }
Thanks Ollie . Now If I can only make JPanel to work with FocusListener... For some reason or bug JPanel never gets focusGained or focusLost events.
But thanks for your help, any ideas about my other post on CreateCompoundChild
Thanks
Amad
A JPanel never receives focus (it's not focusable), so it never receives focusLost or focusGained events.