Class SwingConsole

    • Constructor Detail

      • SwingConsole

        public SwingConsole()
        Creates a console that displays candidates arranged in three columns (and as many rows as required).
      • SwingConsole

        public SwingConsole​(int columns)
        Creates a console with a configurable number of columns.
        Parameters:
        columns - The number of columns to use when displaying the candidates for selection.
    • Method Detail

      • select

        public int select​(List<? extends JComponent> renderedEntities)
        This method blocks and therefore must not be invoked from the Event Dispatch Thread.
        Specified by:
        select in interface Console<JComponent>
        Parameters:
        renderedEntities - A list of the suitably transformed entities that will be presented to the user for selection.
        Returns:
        The index of the selected entity.