JFrame parent;  
public JDialog1(JFrame parent){//把Frame1传给JDialog1
   this.parent=parent;
}button的事件处理:
public void actionPerformed(ActionEvent e){
  parent.jtf1.setText(jtf2.getText());
  parent.setJMenuBar(jmb2);
}