private void updateResolutionChoices() {
        if (!fullscreenBox.isSelected()) {
            displayResCombo.setModel(new DefaultComboBoxModel<>(getWindowedResolutions(windowModes)));
            if (displayResCombo.getItemCount() > 0) {
                displayResCombo.setSelectedIndex(displayResCombo.getItemCount() - 1);
            }
            colorDepthCombo.setModel(new DefaultComboBoxModel<>(new String[] { "24 bpp", "16 bpp" }));
            displayFreqCombo.setModel(new DefaultComboBoxModel<>(new String[] { resourceBundle.getString("refresh.na") }));
            displayFreqCombo.setEnabled(false);
        } else {
            displayResCombo.setModel(new DefaultComboBoxModel<>(getResolutions(modes, Integer.MAX_VALUE, Integer.MAX_VALUE)));
            if (displayResCombo.getItemCount() > 0) {
                displayResCombo.setSelectedIndex(displayResCombo.getItemCount() - 1);
            }
            displayFreqCombo.setEnabled(true);
            updateDisplayChoices();
        }
    }
<code>updateResolutionChoices</code> updates the available resolutions
list to match the currently selected window mode (fullscreen or
windowed). It then sets up a list of standard options (if windowed) or
calls <code>updateDisplayChoices</code> (if fullscreen).
jme3-awt-dialogs/src/main/java/com/jme3/awt/AWTSettingsDialog.java