I have designed a GUI with JLabels, JTextFields and 4 JButtons. One of my buttons when clicked should take what the user has typed into all of the text fields and save them into a plain text file to then be able to be read by the same GUI.
I have already set up the action listeners for the buttons but cannot figure out how to write the code to copy the text from all of the text fields into a file. Can anyone help?
Thanks