Does that code compile? Why are you calling getText() repeatedly without doing anything with the values?
Recommended reading: Lesson: Exceptions (The Java™ Tutorials > Essential Classes)
Type: Posts; User: KevinWorkman
Does that code compile? Why are you calling getText() repeatedly without doing anything with the values?
Recommended reading: Lesson: Exceptions (The Java™ Tutorials > Essential Classes)
There is no such notion as "inside a button". You're already using ActionListeners in your code. If you don't understand them because you used a gui builder instead of learning how to code, I suggest...
Well, can't you do something similar inside the actionPerformed() method of a JButton's ActionListener?
Did you take a look at the links I gave you? Break your problem down into much smaller pieces- can you get the text from the JTextFields? Can you print that text out to a console? Can you create a...
What part of this is giving you trouble? Where exactly are you stuck?
Recommended reading: How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) and...