Java JList Select setSelectedValue(JList list, Object value)

Here you can find the source of setSelectedValue(JList list, Object value)

Description

set Selected Value

License

Open Source License

Declaration

public static void setSelectedValue(JList list, Object value) 

Method Source Code

//package com.java2s;

import javax.swing.JList;

public class Main {
    public static void setSelectedValue(JList list, Object value) {
        list.setSelectedValue(value, true);
    }//  w ww.  j  a  va2 s  .c  o  m
}

Related

  1. setJListSelection(List selection, JList list)
  2. setLeadAnchorWithoutSelection(ListSelectionModel model, int lead, int anchor)
  3. setSelectedItems(JList list, List selected)
  4. setSelectedList(JList list, Object selected)
  5. setSelectedListIndices(final JList list, final List indices)
  6. setSelectedValues(JList jList, Object[] values)
  7. setSelection(JList list, Object element)
  8. updateSelectionAfterItemMoved(ListSelectionModel selectionModel, int[] previousSelection, int previousIndex, int newIndex)