Hmm strange - maybe you need to call GUI.clearKeyboardState() and clearMouseState() ?
I tried this but the panel still stays open.
Can you post the code (hopefully in a way that I can run it) ?
I will have to write up a self contained program for you...I am running in Slick right now and need to extract the code.
But in the mean time, this is the method I have that actually changes the resolution and syncs the view port:
tswGame is a TWLStateBasedGame.
public static void changeResolution ()
AppGameContainer app = (AppGameContainer)tswGame.getContainer();
app.setDisplayMode(resolution.getDimension().getX(), resolution.getDimension().getY(), VideoSettings.isFullScreen());
//Update the renderer to sync with the new display.
catch (SlickException e)
And the Combobox code...
public void run ()
int index = resolutionComboBox.getSelected();
ResolutionEntry newResolution = resolutionComboBox.getModel().getEntry(index);
//After this the popup is still there...
I will put something together and reply to this thread today or tomorrow.