SWT « Layout « Java Swing Q&A





1. swt gridlayout rowheight    stackoverflow.com

I have a gridlayout. I have two rows. I want one row to take up 500 pixels. I want the other row to take up the rest of ...

2. How do I neatly indent some components using Java Swing layouts    stackoverflow.com

Using Swing, what is the best way to indent some components underneath a checkbox or radio button? I need to make something in the style of Firefox 3.6's Options->Privacy dialog where ...

3. GridLayout and GridData in eclipse    stackoverflow.com

What the relation between the two? Why do you have to provide both?

4. Is it possible to use anything other than GridLayout on Eclipse preference pages?    stackoverflow.com

The following simple preference page fails with a ClassCastException:

@Override
protected Control createContents(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    container.setLayout(new FillLayout());
    List ...

5. What is the purpose of Layout in SWT applications?    stackoverflow.com

What is the usage of the Layout in SWT application, since, we can omit it in our applications. What is the benefit of having it?

6. GridData class in SWT    stackoverflow.com

This is about GridData class in SWT UI programming. Why should GridData be final ? Java Doc of GridData says that it's final. I want to understand why it should be final. Thank ...

7. GridBagLayout in SWT    coderanch.com

in SWT ,no method for handling MouseDragged event.I dont looked it so much,but just started.i think it's promising only due to it's speed in low end machines. anyway i m a child here in SWT.let me look more.anyway i m interested.any good forums for it?. why 'sun' not made a native compiler???. basha

8. SWT layout    coderanch.com

I'm new to SWT. I have a screen with one composite that itself contains two composites, buttonRow and tableRow All of the composites are set to GridLayout. The tableRow composite has a table in it and the table is cropped for some reason. I have tried various things to make the table fill the space available (grabExcessHorizontalSpace, horizontalAlignment = SWT.FILL, etc.) ...