Updated the commands to take the JTabbedPane in the constructor