use of com.intellij.ui.components.JBScrollPane in project azure-tools-for-java by Microsoft.
the class ActivityLogToolWindowFactory method createToolWindowContent.
@Override
public void createToolWindowContent(@NotNull final Project project, @NotNull final ToolWindow toolWindow) {
this.project = project;
table = new TableView<DeploymentTableItem>(new ListTableModel<DeploymentTableItem>(DESC, PROGRESS, STATUS, START_TIME));
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
// add mouse listener for links in table
table.addMouseListener(createTableMouseListener());
toolWindow.getComponent().add(new JBScrollPane(table));
registerDeploymentListener();
}
use of com.intellij.ui.components.JBScrollPane in project sonarlint-intellij by SonarSource.
the class SearchProjectKeyDialog method createProjectList.
private void createProjectList() {
projectList = new JBList();
projectList.setEmptyText("No projects found in the selected SonarQube Server");
projectList.setCellRenderer(new ProjectListRenderer());
projectList.addListSelectionListener(new ProjectItemListener());
projectList.addMouseListener(new ProjectMouseListener());
projectList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
projectList.setVisibleRowCount(10);
projectList.setBorder(IdeBorderFactory.createBorder());
Convertor<Object, String> convertor = o -> {
RemoteModule module = (RemoteModule) o;
return module.getName() + " " + module.getKey();
};
new ListSpeedSearch(projectList, convertor);
scrollPane = new JBScrollPane(projectList);
}
Aggregations