posted 6 years ago
In general, how do you iterate an arraylist say of 12 items, but only 4 at a time using a jbutton. In other words, when the gui launches, the first 4 items show, then every time the button is clicked, the next four items show and so on until the end of the Array List? How is this done? All I know is that, it has something to do with the actionperformed method or action listener.