editorDialog.setSize(600, 350);
    public void showProperties(DataObject object, int editorType)    {        switch (model.getState()) {            case DISCARDED:            case SAVE:                throw new IllegalStateException(                    "This method cannot be invoked in the DISCARDED or SAVE " +                    "state.");        }        TreeImageDisplay parent = null;        switch (editorType) {            case PROPERTIES_EDITOR:                break;            case CREATE_EDITOR:                  parent =  model.getSelectedBrowser().getLastSelectedDisplay();                break;            default:                throw new IllegalArgumentException("This method only " +                        "supports the PROPERTIES_EDITOR and CREATE_EDITOR.");        }        removeEditor();        model.setEditorType(editorType);        Editor editor = EditorFactory.getEditor(this, object, editorType,                                                 parent);        editor.addPropertyChangeListener(controller);        editor.activate();        model.setEditor(editor);        if (editorType == CREATE_EDITOR) {            editorDialog = new EditorDialog(view);            editorDialog.addComponent(editor.getUI());            editorDialog.setSize(600, 350);            UIUtilities.centerAndShow(editorDialog);            onComponentStateChange(false);        } else view.addComponent(editor.getUI());    }