I'm currently working on a small text game project as an exercise in Java. Just recently, I've come to a point where I am having difficulty with the logic behind the flow of the program.
It had started out as a console application with a very sequential series of events such as:
System.out.println("What is your name?");
Player.setName(console.nextLine());
System.out.println("What is your quest?");
//etc. etc.
Since then, I've decided to try and change my approach and start using a GUI so I can add neat little things like a health bar and visible stats. Plus, it's a bit of a challenge. However, I'm finding that actually navigating the menu and taking input is a problem. How would I take input from the JTextField (getText()), give the input to the menu for processing and output, and then answer the next question using the same JTextField? Any and all help is greatly appreciated! If you need any further clarifications, please ask.