I know this is a really basic question, but I'm having problems with it anyway. I have a main program that calls out a separate little JDialog form that has fields the user needs to fill in. What I then want to do is have the JDialog part return the data to the main object when the ok button is pressed. I'm not sure how to do this without creating a loop that is constantly checking on it. Thanks for any help.