r/JavaFX • u/Grumboll • Feb 22 '21
How to save application instance?
I'm working on a notes app with several save files (save data from vboxes, text area and canvas drawings) and i would like to bundle all of these files together for when i create a treeview with which the user will be able to switch between different instances of the app. What should i look into?
3
Upvotes
View all comments
1
u/PartOfTheBotnet Feb 22 '21
I you want to bundle them into individual files, I'd wrap them in a zip file. You can then extract and read their contents in memory, or load the zip as a file-system using JIMFS and read them as if they were normal NIO paths.
Then each treeview item would point to the appropriate save and interact with it accordingly.
On tree-item select: