I have a jframe (parent) which creates an input frame (child) where I get some parameter.
In the ‘child’ frame I have ‘ok’ and ‘cancel’ buttons.
When ‘ok’ button is pressed, the parent frame needs to be updated with new data.
What is the best way to do that??
Pass in a reference to the parent frame when you create (or display) the child frame. This will require an overloaded constructor or display method.
Once the child has the reference, it can of course call any method that the parent exposes as public, like UpdateDate()