title: managing parent frame from child frame on java swing
body: <p>I have a jframe (parent) which creates an input frame (child) where I get some parameter.</p>
  
  <p>In the "child" frame I have "ok" and "cancel" buttons. </p>
  
  <p>When "ok" button is pressed, the parent frame needs to be updated with new data.</p>
  
  <p>What is the best way to do that??</p>