java - What does JList.getSelectedIndices() actually return? -



java - What does JList.getSelectedIndices() actually return? -

apparently, jlist.getselectedindices() returns array of int values indices of selected items.

i have searched around net indices mean in scenario. i'm not able find answer, please explain uses , returns?

it returns list of selected indices because technically it's valid select more 1 element jlist.

take illustration given here

selected indices here {1}

selected indices here {1, 2, 3}

selected indices here {0, 1, 3}

java swing

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -