setVariable to Swing JTextfiled?
I'm basically trying to learn on my own.
Have a Student.java class with set/get JOptionPane.showInputDailog("Some Questions");
plus toString and print methods (both default constructors and User Input)
There are 8 questions with 7 String answers, and 1 double answer.
I created a MyButton.java class with 3 JButtons. (code partially finished pending below)
When the "Register Student" button is clicked.
How can I get all the 8 Questions to show up in the one window,
So user need only click OK once.
Re: setVariable to Swing JTextfiled?
It sounds to me like you want to create a custom JDialog or JFrame. The following link provides tutorials on how to use Swing components: Lesson: Using Swing Components (The Java™ Tutorials > Creating a GUI With JFC/Swing) There are many different links there, of interest to you may be the JFrame, TextField, and button links.