Save a the text from a jTextArea (ie Save As) into a new .txt file
问题 I am busy trying to make a word processor as one of my project and I need the text entered into the jTextArea to be saved as a .txt file with a name and location that the user chooses. note "fc" is the name of i file chooser i have already declared. public class TextEditor extends javax.swing.JFrame { int count = 2; JTextArea n = new JTextArea(); final JFileChooser fc = new JFileChooser(); public void SaveAs() { final JFileChooser SaveAs = new JFileChooser(); SaveAs.setApproveButtonText("Save