Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void showDialog() {
- if (shell == null || shell.isDisposed()) {
- shell = new Shell(Display.getCurrent().getActiveShell(), SWT.CLOSE | SWT.RESIZE);
- // SHELL ==========================================
- shell.setSize(400, 400);
- shell.setLocation(Display.getCurrent().getCursorLocation());
- shell.setText("Douginator");
- shell.setLayout(new FillLayout());
- FormData fd;
- // REGIONS ========================================
- SashForm searchRegion = new SashForm(shell, SWT.HORIZONTAL);
- Text text1 = new Text(searchRegion, SWT.CENTER | SWT.BORDER);
- SashForm resultRegion = new SashForm(shell, SWT.HORIZONTAL);
- Text text2 = new Text(resultRegion, SWT.CENTER | SWT.BORDER);
- shell.open();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement