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
Post a Comment