/** * Returns an array containing the indices of selected list items * * @return Array containing the selected indices. */ public int[] getSelectedIndices() { return new int[] {list.getSelectedIndex()}; }