HashMap в DefaultListModel

Вот код, который у меня есть:

HashMap<String, String> inst1 = new HashMap(instructorIO.getInstructors());
instListModel = new DefaultListModel<String>(inst1.values());

Я получаю ошибки:

DepartmentProject.java:69: error: constructor DefaultListModel in class DefaultListModel<E> cannot be applied to given types;
    required: no arguments
    found: Collection<String>
    reason: actual and formal argument lists differ in length
    where E is a type-variable:
    E extends Object declared in class DefaultListModel

Кто-нибудь может мне с этим помочь?

Ответы на вопрос(1)

Ваш ответ на вопрос