Java JList Item getItemList(JList anJList, int index)

Here you can find the source of getItemList(JList anJList, int index)

Description

getSelecetdList

License

LGPL

Parameter

Parameter Description
anJList JList

Return

Object

Declaration

public static Object getItemList(JList anJList, int index) 

Method Source Code

//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);
    }
}

Related

  1. getItems(JList list)
  2. getJListItemAry(javax.swing.JList jlist)
  3. getListItems(JList list)