SHARE
TWEET

Untitled

a guest Aug 12th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top