JFrames or Panels to perform different tasks
Wondering what the best way to perform different tasks in one application is? I want to create a program that requires a logon (verifies through Database). After Loggin in I want to have a JFrame full of buttons that are assigned different tasks. For example: If user has permissions, they can click on button1 to bring a database entry screen up to add, delete and modify database entries. They also could click button2 to display a report of the data on the database. Button3 would bring up a screen that changes their user preferences. I can not figure out how to do this with out opening numerous JFrames at one time. The only other way I know is to create different panels and have the buttons display a different panel according to what the request is. Is there a better way? If not is the JFrame or Panel idea better? Thanks so much in advance!