JLists - number of elements in the list
Asked Answered
C

1

15

I need find out the number of elements are there in my Jlist. Can u show me a way to get it.

Classy answered 12/2, 2011 at 7:8 Comment(0)
B
47

Here's how:

myJList.getModel().getSize();
Burro answered 12/2, 2011 at 7:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.