use of javax.swing.JList.VERTICAL in project sonarlint-intellij by SonarSource.
the class OrganizationStep method createUIComponents.
private void createUIComponents() {
JBList list = new JBList();
list.setLayoutOrientation(VERTICAL);
list.setVisibleRowCount(8);
list.setEnabled(true);
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setCellRenderer(new ListRenderer());
Convertor<Object, String> convertor = o -> {
RemoteOrganization org = (RemoteOrganization) o;
return org.getName() + " " + org.getKey();
};
new ListSpeedSearch(list, convertor);
this.orgList = list;
}
Aggregations