I have a `JList` that is inside of a `JscrollPane` and I am trying to do some pagination on the data, in which as the user scrolls it loads the appropriate amount of data onto the screen. The problem is I need to figure out how much data I need to buffer out of my file and the only way to do that is to figure out how much data needs to be displayed on the screen. Does anyone have an idea of how to get the number or rows and columns that can be displayed out of my `JList`? Also is doing pagination with a `JList` and a `JScrollPane` a good idea or is there some other approach that would be better suited for displaying a ton of data in a scroll panel?

Thanks