How does java click on different menus to display different contents?
You make several JPanel with Swing in advance, corresponding to your different menu contents.
Then set these JPanels as hidden when initializing, and set the corresponding JPanels as visible when clicking the menu, and this function can be realized.