Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1.         Display d = new Display();
  2.         final Shell s = new Shell(d, SWT.SHELL_TRIM);
  3.         s.setLayout(new GridLayout(3, false));
  4.         s.setData(new GridData(SWT.FILL, SWT.FILL, true, true));
  5.         s.setText("App Title");
  6.  
  7.         Combo one = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
  8.         one.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
  9.         one.setItems(new String[]{"one", "two", "three"});
  10.        
  11.         Combo two = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
  12.         two.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
  13.         two.setItems(new String[]{"one", "two", "three"});
  14.        
  15.        
  16.         Combo three = new Combo(s, SWT.DROP_DOWN | SWT.READ_ONLY);
  17.         three.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
  18.         three.setItems(new String[]{"one", "two", "three"});
  19.        
  20.  
  21.         s.pack();
  22.         s.open();
  23.         return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement