Passing data from one JFrame to another JFrame. - need help.
My main JFrame will open a second JFrame that has serveral input fields to gather user input and store that information in a String. Once a confirm button has been pressed I need to send that newly created String variable to the main JFrame where I can then use it for other things.
How do you send the newly created string to the main JFrame once the button is clicked?
I've tried creating a method inside the second JFrame to call for that particular String but I am not quite sure how I make the main JFrame wait until the confirm button on the second JFrame has been hit before I call that method.