Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.07 seconds.

  1. Re: Button to save data in text fields to a File

    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)
  2. Re: Button to save data in text fields to a File

    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...
  3. Re: Button to save data in text fields to a File

    Well, can't you do something similar inside the actionPerformed() method of a JButton's ActionListener?
  4. Re: Button to save data in text fields to a File

    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...
  5. Re: Button to save data in text fields to a File

    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...
Results 1 to 5 of 5