Monday, 15 April 2013

java - JList - get number of selected elements in multi-select list -



java - JList - get number of selected elements in multi-select list -

how number of selected elements jlist? can create int[] array , add together selected indices array.

jlist.getselectedindices().length give array length :) refer javadocs mate

java arrays jlist

No comments:

Post a Comment