Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display d = new Display();
- final Shell s = new Shell(d, SWT.SHELL_TRIM);
- s.setLayout(new GridLayout(3, false));
- s.setData(new GridData(SWT.FILL, SWT.FILL, true, true));
- s.setText("App Title");
- Combo one = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
- one.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
- one.setItems(new String[]{"one", "two", "three"});
- Combo two = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
- two.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
- two.setItems(new String[]{"one", "two", "three"});
- Combo three = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
- three.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
- three.setItems(new String[]{"one", "two", "three"});
- s.pack();
- s.open();
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement