Ok, I'm working on a program to be used by a campground, keeping track of customers, campsites, and reservations. The problem I'm running into is in my code. I have a main GUI that opens at the start of the program, and from there other GUI's can be opened through the toolbar. I'm completely new to threads, and I know I need to use them, but I've had a bit of bad luck finding the information I'm looking for on their use.
One thing that needs to be done is information must be passed between the GUI's. For example, MainGUI is opened at the onset of the program, then the FindEditCustomerGUI is opened. From there, CustomerSearchGUI is opened and a customer is found from the database given the criteria established in the FindEditCustomerGUI and displayed in the table. The customer is selected, and Found Customer button is pressed, and the customer object needs to be sent back to the FindEditCustomerGUI.
I've spent two hours searching for information on how to do this, but have come up with nothing. Any help on how to use threads and how to pass information back and forth would be greatly appreciated.