private void setDetailDisplay(String type) {
        String catalog = (String)catalogListCB.getSelectedItem();
        String schema = (String)schemaListCB.getSelectedItem();
        String dataType = (String)datatypeListCB.getSelectedItem();
        String entryName = (String)entryList.getSelectedValue();

        DbCustomModel dbCustom = myModel.getCustomModel();
        if (dbCustom == null  ||  entryName == null  ||  entryName.equalsIgnoreCase(EMPTY_LIST)) {
            scriptEditor.setText("");
        } else {
            String script = "";
            sqlDoc.startBulkLoad();	
            if (DETAIL_SOURCE.equalsIgnoreCase(type)) {
                script = dbCustom.getSource(catalog, schema, dataType, entryName);
            } else if (DETAIL_CREATE.equalsIgnoreCase(type)) {
                script = dbCustom.getCreate(catalog, schema, dataType, entryName);
            } else {
                script = dbCustom.getDrop(catalog, schema, dataType, entryName);
            }
            scriptEditor.setText(script);
            sqlDoc.finishBulkLoad();
            scriptEditor.setCaretPosition(0);
        }
        //		rightPanel.setVisible(false);  // This is done to force a re-draw to show the new data
        //		rightPanel.setVisible(true);   // <same as previous statement>
    }