@Override
            public void run() {
                // Fill in the combos once the window has opened so that the
                // insets can be read.
                // The assumption is made that the settings window and the
                // display window will have the
                // same insets as that is used to resize the "full screen
                // windowed" mode appropriately.
                updateResolutionChoices();
                if (source.getWidth() != 0 && source.getHeight() != 0) {
                    displayResCombo.setSelectedItem(source.getWidth() + " x " + source.getHeight());
                } else {
                    displayResCombo.setSelectedIndex(displayResCombo.getItemCount() - 1);
                }

                updateAntialiasChoices();
                colorDepthCombo.setSelectedItem(source.getBitsPerPixel() + " bpp");
            }
<code>init</code> creates the components to use the dialog.
jme3-awt-dialogs/src/main/java/com/jme3/awt/AWTSettingsDialog.java