There are lines of code:
private JList jlResultsList; And in the constructor:
jlResultsList = new JList(arraySearchResult); jlResultsList.setSelectionModel(ListSelectionModel.SINGLE_SELECTION); IDE notes as a ListSelectionModel.SINGLE_SELECTION error.
And when trying to compile gives:
Error: (49, 59) java: incompatible types: int cannot be converted to javax.swing.ListSelectionModel
import javax.swing.*; it is registered. What could be the error?