Java JList Select getSelectedMultipleList(JList anJList)

Here you can find the source of getSelectedMultipleList(JList anJList)

Description

fillList

License

LGPL

Parameter

Parameter Description
anJList JList

Return

Object

Declaration

protected static Object[] getSelectedMultipleList(JList anJList) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.*;

public class Main {
    /**//from   ww w.  jav  a2 s. c om
     * fillList
     *
     * @param anJList JList
     * @return Object
     */
    protected static Object[] getSelectedMultipleList(JList anJList) {
        Object[] el = null;
        el = anJList.getSelectedValues();
        return el;
    }
}

Related

  1. fillSelectionListFromString(JList aListComponent, String theList, boolean removeQuotes)
  2. fireSelectRow(final JList list, final Object value)
  3. fireSelectRows(final JList list, final int[] rows)
  4. getSelectedIndecies(final ListSelectionModel lsm)
  5. getSelectedItems(DefaultListModel listModel, ListSelectionModel selectionModel)
  6. getSelectedRows(ListSelectionModel listSelectionModel)
  7. initParamList(final JList paramList, final String[] availNames, final String[] defaultSelection)
  8. JListRemoveSelectedObject(javax.swing.JList list)
  9. linkEnabledToSelected(final JComponent component, final ListSelectionModel model)