private void updateAntialiasChoices() {
        // maybe in the future will add support for determining this info
        // through PBuffer
        String[] choices = new String[] { resourceBundle.getString("antialias.disabled"), "2x", "4x", "6x", "8x", "16x" };
        antialiasCombo.setModel(new DefaultComboBoxModel<>(choices));
        antialiasCombo.setSelectedItem(choices[Math.min(source.getSamples() / 2, 5)]);
    }
<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