The JTabbedPane is a component whose purpose is to contain several components, of which only one is visible at any time. It has tabs so that you can switch between components.
And so it doesn't use a layout manager.
You can certainly create a JPanel which uses a BorderLayout and so on, like you said. But JTabbedPane has nothing to do with that.
So for the learning process, I would start out by creating a JPanel which uses a BorderLayout. Remember that when you add a component to a JPanel with a BorderLayout, you have to specify which of the five (not four) parts of the layout the component should appear in. There are online tutorials with examples for you to look at.
Then when you have that working, you can extend your code to add it to a JTabbedPane.
posted 3 weeks ago
Can I do this with a CardLayout and get the same results?