posted 13 years ago
I'm trying to create a JOptionPane with yes and no options asking whether the person wishes to go into full screen mode or not. When the person clicks on yes, full screen mode should be set, but it's not. If I were to click on no, then it would do the correct thing. When I click on yes, it goes straight to normal screen. I'm not sure why and everything seems correct. Here's the Main class.
And the GameFrame constructor.
The isFullScreen boolean has a setter and getter for it, so that's where setFullScreen(boolean isFullScreen) comes into play. I don't see anything wrong with it if I'm setting the boolean to make it full screen or not and then setting the display mode for it. Help is appreciated. Thanks.