@Override @Nullable public Container getContentPane() { return getRootPane() != null ? myDialog.getContentPane() : null; }