I'm making a game and when it starts up I want the game to load a file in it's jar and set the display according to the contents of that file, I can do that just fine. But if the file doesn't exist(the first time the program runs) or something is wrong with it I'd like to set the display to the lowest resolution possible and write a file reflecting it. I haven't been able to find a way to do this.
In case anyone points it out, I've started to think I probably shouldn't keep this file in the jar(a user might like to edit it) but I'd still like to know if this can be done.