Java: wait first frame while retrieving data from second frame then on hitting on close button and control also come to the first frame
问题 In my application two frame is there. In main frame "Server" button is there. When I click on "Server" button second frame will open and after enter some detail when i click on "submit" button which is on second frame this frame will close and control again go to the "Server" button where I call this frame so I will do my rest of task. And one more thing I want in my application when the second frame is open then no activity is on first frame. My first frame is: JFrame frame; In this frame