Hello!
> how do I create a list of checkboxes from an array?
Please be more specific.
Christian
Hi,
I don't understand the display of this basic jface sample.
What is this space to the left of "Button 1" ?
I'm sure the answer is simple and I propably missed something but what ?
Thanks,
Olivier.
If you know a better newsgroup for specific SWT/jface questions, let me
know.
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
public class Test extends ApplicationWindow {
public Test() {
super(null);
}
public static void main(String[] args) {
Test application = new Test();
application.setBlockOnOpen(true);
application.open();
}
protected Control createContents(Composite parent) {
Shell shell = this.getShell();
RowLayout layout = new RowLayout();
layout.wrap = true;
shell.setLayout(layout);
new Button(shell, SWT.PUSH).setText("Button 1");
new Button(shell, SWT.PUSH).setText("Button 2");
new Button(shell, SWT.PUSH).setText("Button 3");
return shell;
}
}
Olivier Roland - 09 Sep 2003 23:16 GMT
Sorry for my previous message.
Nothing to do with this thread.
Regards,
Olivier.