Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1.     private static void showDialog() {
  2.        
  3.         if (shell == null || shell.isDisposed()) {
  4.            
  5.             shell = new Shell(Display.getCurrent().getActiveShell(), SWT.CLOSE | SWT.RESIZE);
  6.            
  7.             // SHELL ==========================================
  8.  
  9.             shell.setSize(400, 400);
  10.             shell.setLocation(Display.getCurrent().getCursorLocation());
  11.             shell.setText("Douginator");
  12.             shell.setLayout(new FillLayout());
  13.            
  14.             FormData fd;
  15.            
  16.             // REGIONS ========================================
  17.            
  18.             SashForm searchRegion = new SashForm(shell, SWT.HORIZONTAL);
  19.             Text text1 = new Text(searchRegion, SWT.CENTER | SWT.BORDER);
  20.  
  21.             SashForm resultRegion = new SashForm(shell, SWT.HORIZONTAL);
  22.             Text text2 = new Text(resultRegion, SWT.CENTER | SWT.BORDER);
  23.  
  24.             shell.open();
  25.         }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement