Hi all,
I wrote a dialog box to set the resolution, depth, fullscreen, etc of the application. It does the following:
Reads an existing configuration file, if it’s there sets the values to what’s defined in the file. If not, sets the values to a default. You can then hit ok, or change any settings.
Once you hit ok, I dispose of the dialog and send the values to the creation of the display.
The strangeness is: if the window is NOT fullscreen it starts up invisible, and I cannot make if visible. Alt-Tabbing to it gives it keyboard/mouse control but the window does not appear.
If the window IS fullscreen, it starts up fine, but when the app is closed, the resolution and stuff does not return to that of the desktop. It stays to what was defined during the creation of the display.
Only happens when I create a JDialog before creating the display.
Any ideas?