So, this is for a beginner
java class, and I'm struggling. Basically, we have an array full of different albums and information about them, and now I need to create a GUI that allows a user to move next, previous, first, and last. It seems simple enough, but I'm a little bit confused, I can't seem to wrap my head around the code I need. I have a next and previous button already established, but when I run the program (using the next button) and reach the last entry, it will not let me use the previous button to go back. The next and previous buttons also need to scroll through the entire thing, ex. pressing next after the last entry brings you to the first entry, and vice versa. I have several classes but I am only going to post the one I'm working in, but I can post them if they are needed. The code block with the buttons is about halfway down...I added a big space between to make it easier to find.
You guys are really great, and I've actually learned a great deal just reading through these posts, apologies if something like this has been posted recently, I didn't find anything.