Q:

Display a tab on activating a menu item

How can we display a JTabbedPane through clicking a menu item within a menu bar?

A:

Look into setSelectedIndex() and setSelectedComponent() in the javadocs. You can usually find methods similar to these in the docs.
JTabbedPane#setSelectedComponent

