public void setImage(URL image) {
        icon.setIcon(new ImageIcon(image));
        pack(); // Resize to accommodate the new image
        setLocationRelativeTo(null); // put in center
    }
<code>setImage</code> sets the background image of this dialog.

@param image
           <code>URL</code> pointing to the image file.
jme3-awt-dialogs/src/main/java/com/jme3/awt/AWTSettingsDialog.java