7
R-C-D
7y

I was working on a simple notebook project in java (console app)
But I think I need a little help :
When user wants to edit a note , he should write the note all over again!
How can insert the current note in console(like user input) so that the user can iterate and modify the text ?

Thanks

Comments
  • 1
    You're probably looking for something a little more advanced than a console experience. Loading text into a modifyable buffer in the console would be a lot more difficult than just building a GUI (with say JavaFX) and creating a text area, and loading the text into that text area.

    There are some simple beginner tutorials you can find online for JavaFX, but ultimately you could probably get the feature going in fewer than 20 lines of code (assuming you're storing the "notes" in a file).
  • 0
    You could also save the note to a temp file and let the user edit that (like how git does with commit messages)
  • 0
    @LucaScorpion If I understand OP correctly, he's already doing this, the thing he wants though is to load in the current text into a modifyable area for the user (I.E a text area) so they can mouse around and delete or add to any part.
Add Comment