Here you can find the source of getItemList(JList anJList, int index)
Parameter | Description |
---|---|
anJList | JList |
public static Object getItemList(JList anJList, int index)
//package com.java2s; //License from project: LGPL import javax.swing.*; public class Main { /**// w w w . j ava2 s .co m * getSelecetdList * * @param anJList JList * @return Object */ public static Object getItemList(JList anJList, int index) { return anJList.getModel().getElementAt(index); } }