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

  • Home
  • SEARCH
  • 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 8196157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:23:21+00:00 2026-06-07T05:23:21+00:00

I want to make a table witch can contain small tables and supports resize.

  • 0

I want to make a table witch can contain small tables and supports resize. enter image description here

My solution use a JScrollpane wich contains the table and the gridbaglayout contains the row which is a JPanel and this row JPanel contains JLabels and ETable (flowlayout).

How i can solve the resize problem? When i resize the window the column align automtically with the window.

My code is here.

enter image description here

The columns are not aligned correctly in the big table.

  • 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-07T05:23:22+00:00Added an answer on June 7, 2026 at 5:23 am
    1. I see there J(X)TreeTable or Outline with Custom Look and Feel (Renderer talking about Nimbus L&F, because isn’t there correctly used background for Boolean value)

    2. put JComponents (from top) top the JPanel and there use GridBagLayout

    3. put JScrollPane with J(X)TreeTable or Outline put to the Center area

    4. please which type of TreeTable is there used ??? (for calculating PreferredSize of Columns)

    EDIT

    In this case replace the table with a black box. It’s not relevant.

    JFrame has implemented BorderLayout in the API, then

    • all JComponents from the TOP of the JFrame put to the separate JPanel, there you can use GridBagLayout, this JPanel put to the NORTH area e.g. JFrame.add(JPanel, BorderLayout.NORHT)

    • put black box to the CENTER area e.g. JFrame.add(black box, BorderLayout.CENTER)

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

Sidebar

Related Questions

I want to make custom select from the database table using Linq. We use
I want to make a web-UI where users can enter a table name and
I want to make two tables on single screen, so that if Table A
I have a table with primary key (ColumnA, ColumnB). I want to make a
I have a table A with a date field. I want to make a
I want to make a table where the entries expire 24 hours after they
I want to make a table view in my iPhone Application.. In that table
I want to make an hibernate querycount on a table. I have to values,
I want to make sure I'm not inserting a duplicate row into my table
I have a table : tags(tagname,entryid,stamp) and i want to make a section for

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.