I'm currently converting all my old applications in Java that use the "J" components to the newer, more trendy JavaFX platform.
Previously in one of my application, you were able to write the contents of a TextArea to a file,nicely spaced an indented, as you graphically saw it in the text area. You did this by using the write() method that the JTextArea class inherited.
Is there anyway to do this with a JavaFX text area, or can I even be able to parse through the file and do it that way?
Assistance would be greatly appreciated!
Code used in JTextArea to write files:
public static void writeFile(File fileName) throws IOException{
BufferedWriter fileOut = new BufferedWriter(new FileWriter(fileName));
Gui.getTextArea().write(fileOut);
}