views:

40

answers:

1

I would like to know normally how they let a user choose the background color? For example, user chooses the background color to be red color, next time when the user runs the application again the background color will automatically become red color instead of the default color. Do they store the value in the database, so next time user runs the application will first retrieve from the database?

+2  A: 

Java Preferences works for this pretty well.

Edit: I can't remember which one I used, but this one looks OK. Just use putInt("background", value). I'd get the value from getRGB(), like they say to here.

Catalina Island
is there any example?
It's pretty old, so there's lots of examples. I put one in the answer.
Catalina Island