if (iFrame != null) { iFrame.getContentPane().add(modifyContent(content)); iFrame.pack(); } else if (dialog != null) { dialog.getContentPane().removeAll(); dialog.getContentPane().add(modifyContent(content)); dialog.pack();
if (display != null) { display.setContent(comp); }  if (content instanceof ComponentListener) { addComponentListener((ComponentListener) content);
    public void setContent(Component comp) {        content = comp;        if (iFrame != null) {            iFrame.getContentPane().add(modifyContent(content));            iFrame.pack();        } else if (dialog != null) {            dialog.getContentPane().removeAll();            dialog.getContentPane().add(modifyContent(content));            dialog.pack();        }    }