Remembering Dialog dimensions (Size and location)

DialogWrapper has the feature to persist or remember the dimensions of the dialog. So that when the dialog is closed, and opened the next time, the previous location and size is remembered. This does not happen by default. You need to override the getDimensionServiceKey() to achieve this.

    public String getDimensionServiceKey() {         return "#com.mypackage.mydialog";     }

The String returned can be anything, but has to be unique for every dialog.

[The link in confluence did mention this fact, but was not prominent. So adding this as a discussion thread.]

Please sign in to leave a comment.