moorara
moorara

Reputation: 4226

Needing a component similar to JTabbedPane

I'm looking for a component like "JTabbedPane" in which I can design each tab separately and easily but I don't want the little square buttons with tab names in runtime! Instead, I want to activate each tab panel in my code. In fact, I want to have multiple "JPanel"s with same size and location (they have complete overlap) and I set visibility of each them manually in my code but the most importing thing is that I want to design each panel as easy as possible (like clicking on the tab names in design-time).

Upvotes: 1

Views: 245

Answers (1)

Reimeus
Reimeus

Reputation: 159854

You could use CardLayout here to create your own overlapping panels as you have described. The visibility of each panel can be programmatically changed.

Upvotes: 1

Related Questions