Saving user preferences and images in Java

I am writing a program that allows the user to view their computer for images. When they select an image, its location (for example, "c: /users/peter/desktop/image1.jpg") is stored in an array of strings. The user can then flip through the β€œslide show” of their selected images. This is done by accessing the image location manager, setting them as icons for tags.

But I need help in saving these images and locations, so every time the user launches the program, it already has images that the user previously selected. I do not know if this means saving the location archiver or somehow importing / saving images to program files. Any help or suggestions would be great, and please let me know if you need more information.

+3
source share
3 answers
+4
0

If you are asking about sketch generation

"arraylist image locations setting them as icons"

... (either when the user leaves the application, or when he returns to the application), this has been examined many times in SO and here is one of the answers.

0
source

Source: https://habr.com/ru/post/1791385/


All Articles