Hey all,
From one GUI class, I am calling another one, however, it does not wait for the newly made GUI to finish before running the code afterwards, which is an issue as I am retrieving values from the newly made window. My code:
EditingQuestion editQuestionGUI = new EditingQuestion(id,question,answer);
System.out.println(editQuestionGUI.new_question);
System.out.println(editQuestionGUI.new_answer);
The EditingQuestion class is a class which creates a new JFrame window, but it doesn't wait for the editQuestionGUI to finish being used and it only prints null. Any ideas on how to fix this?
Thanks.