public LWJGLPropertiesDialog(PropertiesIO source, URL imageFile) { if (null == source) throw new JmeException("PropertyIO source cannot be null");  this.source = source; this.imageFile = imageFile; try { this.modes = Display.getAvailableDisplayModes(); } catch (LWJGLException e) { e.printStackTrace(); } Arrays.sort(modes, new DisplayModeSorter());  createUI();
public LWJGLPropertiesDialog(PropertiesIO source, String imageFile) { this(source, getURL(imageFile));
    public LWJGLPropertiesDialog(PropertiesIO source, URL imageFile) {        if (null == source)            throw new JmeException("PropertyIO source cannot be null");        this.source = source;        this.imageFile = imageFile;        try {            this.modes = Display.getAvailableDisplayModes();        } catch (LWJGLException e) {            e.printStackTrace();        }        Arrays.sort(modes, new DisplayModeSorter());        createUI();    }