JTabbedPane Panel Inserting a Next Page Button

I have a JTabbed Panel with 8 tabs that I've created for a mock Subway ordering system. I would like to create a "next page" button. I found the following documentation on oracle docs but I'm having trouble setting up the code properly.

I'm not sure if this should include an ActionListener to make it work and I'm not sure how you would set up "SetSelectedIndex" on a button or should that be on the JTabbedPane?