is there any editor in Java? To expand that, want to – let’s say – open a text file, edit it, and then save it back or cancel?
What I want to do is that I have a GUI and I want to click a button that will bring up the file chooser, then I choose my text file that will be opened using this editor, I will then edit the file and finally save it or cancel to not save the changes, which will return me back to my GUI.
I would like to do all of these while in the Java environment, closing the GUI, editing the file and then reopening can be easily done.
If you are Trying to make your own editor, Its a big process. You got to construct your UI, (1 big text area) set up a file chooser.
Basically use a
JFramewith aJTextAreaJFileChooser