Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8593303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:57:27+00:00 2026-06-11T23:57:27+00:00

Hi everyone I have a JFrame which has three components inside. A menu A

  • 0

Hi everyone I have a JFrame which has three components inside.

  1. A menu
  2. A tabbed pane
  3. a panel that has some buttons

Initially my goal was to create a design like the following:
enter image description here

when the user would resize the application, everything would be resized as well. So I thought maybe if I used a simple grid layout my problem would be solved, so I decided to do the following:

  1. The tabbed pane will have some panels inside and those panels will follow the grid layout.

  2. the Panel at the bottom will follow the grid layout.

  3. the JFrame will follow the grid layout as well.

Results:

enter image description here

As you can see this is not what I wanted, the buttons are too big and although the application resizes very well:

enter image description here

The buttons resize as well but they remain too big. I would like to be able to set a small size for the buttons(more specifically the panel they are contained in) and when the user resizes the application, the buttons would resize only horizontally never vertically which means that ONLY the tabbed pane would grow bigger vertically.
Is this achievable? I searched and found out about gridbaglayout, I started playing a little bit, but I didn’t achieve anything. All I managed to do is the following:

enter image description here

seems good, but when I resize this is what I get:

enter image description here

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:57:28+00:00Added an answer on June 11, 2026 at 11:57 pm

    I would use BorderLayout for the content pane. Put the tabbed pane in it using BorderLayout.CENTER, and the panel of buttons in it using BorderLayout.SOUTH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi everyone my problem today is I have a couple of buttons that slide
everyone. I have some labels that I draw them in the xib file, and
Hi everyone i have one question i.e. i have some database table's which are
everyone I have some question about tasks in Linux, I know that all tasks
I have a central git repository that everyone pushes to for testing and integration,
I have those code snippet that checks the fans table and gets everyone who
Hello everyone, I have some confusion regarding some Win32 API data types and macros
Hey everyone I have a basic search function here that allows me to search
Hello everyone i have a problem I have a text $text = some and
Hi everyone I have some problem. My application have TabLayout and I have A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.