private String[] getWindowedResolutions(DisplayMode[] modes) {
        int maxHeight = 0;
        int maxWidth = 0;

        for (DisplayMode mode : modes) {
            if (maxHeight < mode.getHeight()) {
                maxHeight = mode.getHeight();
            }
            if (maxWidth < mode.getWidth()) {
                maxWidth = mode.getWidth();
            }
        }

        return getResolutions(modes, maxHeight, maxWidth);
    }
Returns every unique resolution from an array of
<code>DisplayMode</code>s where the resolution is greater than the
configured minimums and the height is less than the current screen
resolution.
jme3-awt-dialogs/src/main/java/com/jme3/awt/AWTSettingsDialog.java