I would like to know if it is possible to retrieve the component containing tabs from a JTabbedPane, so that I could put it in a BorderLayout north position and the tab pane would be in the BorderLayout center position ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t see any point in doing that – by default tabs are in north position.
And also – no, you cannot do that anyway – you cannot separate tabs from tab content area since it is a single component combined by TabbedPaneUI. You can specify tabs position relative to content though using
setTabPlacementmethod. For example you can change it to EAST placement: