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 7995819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:32:00+00:00 2026-06-04T14:32:00+00:00

I have a child window, containing a form, Labels, Combos, Buttons aligned in a

  • 0

I have a child window, containing a form, Labels, Combos, Buttons aligned in a line, line by line. Form is not finite. There is a button for adding extra line of input fields. It sort of works for the moment… Problem is when the new line is added the child window size remains the same, however I want it to resize automatically.

child window is a standard SWT shell

Shell ConstantEditWindow = new Shell(parent);

I hava a button with sth like this:

addDesc.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {

            populateConstantMain(tariffConstantsOfType, descComp, descCompLayout, true);

            ConstantEditWindow.layout();

        }
    });

but id doesnt work :/ the child window wont resize ;(

  • 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-04T14:32:02+00:00Added an answer on June 4, 2026 at 2:32 pm

    Read this: http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html

    And the api: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fswt%2Fwidgets%2Fpackage-summary.html

    • .layout() layouts the children of a control
    • pack() causes the receiver to be resized to it’s preferred size.

    Also convention has it that constant name in java should be ALL_IN_CAPITAL.

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

Sidebar

Related Questions

I have a Delphi project and the main form is a child window of
I have an application with an OpenGL window as a child window of the
I have created a window whose handle is handle_parent. Then I created a child
I have an asp.net page which launches a child page in another browser window
I'm running into a problem where, I have a Window that contains a child
I have a windows application with an MDI form and some child forms. I
I have three windows: 1st - main window 2nd - child window - it's
i have a parent window and a child window. in javascript, i want a
I have a WPF Window that open a modal child window to load some
I have the following code in child window which is working but what I

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.