Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Multiple tabs in a JFrame?

+13 votes
Has anyone been able to figure out how to have two or more tabs in a single JFrame? Team Eagle is hoping to implement this for our search results, so the user can tab between Person results and Connection results. We currently have two panels, where one shows connections and the other shows people. We are also using Swing, as that may make a difference when it comes to implementation.
asked Oct 10, 2016 in CSC 285 (F16) by Michael Carlson (100 points)

1 Answer

+3 votes
Best answer
answered Oct 10, 2016 by Forrest Stonedahl (100 points)
selected Oct 10, 2016 by Michael Carlson
Is there a way to put a LayoutManager in the JTabbedPane so that it can have buttons at the bottom, or would each tab need to have its own LayoutManager and buttons?