I made a class that represents a composite. I want this composite to take up all available space. How can I do this and have it show up full size in the designer?
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.
You should choose in your parent composite for example FillLayout.
Another way is to choose GridLayout and then set up GridData in your composite to expand on all parent composite.
You can read more about layouts in SWT here:
http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html