def METHOD_NAME(displayType, data, dataName='Data'):
        """create a display of type displayType. Right click in input field to select particular displayType.
        The data is can be a data object, a datachoice or a list of data or datachoices
        The dataName is used to name the data, i.e., its the parameter name
        """
        import ucar.unidata.data.DataDataChoice as DataDataChoice
        import ucar.unidata.data.DataChoice as DataChoice
        if(isinstance(data, java.util.List)==0):
                tmp = java.util.ArrayList();            
                tmp.add(data);
                data = tmp;
        dataList = java.util.ArrayList();
        for i in range(data.size()):
            obj = data.get(i)
            if(isinstance(obj, DataChoice)==0):
                label = dataName
                if(data.size()>1):
                    label = label +str(i)
                obj = DataDataChoice(label,obj);
            dataList.add(obj);
        control = idv.doMakeControl(displayType, dataList);
        if (shell != None):
            shell.toFront();
        return control