Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell


  }
  static Shell shell;
  static GapListPainter gap_list_painter;
  public static void main(String... args) {
    Display display = Display.getCurrent();
    shell = new Shell(display);
    GapList gap_list = new GapList();
    gap_list.addGap(70, 90);
    gap_list.addGap(1, 20);
    gap_list.addGap(25, 40);
    gap_list_painter = new GapListPainter(gap_list,100);
View Full Code Here


  public boolean open(final long startValue, boolean _assumeInitiallyDown) {
    value = startValue;
    this.assumeInitiallyDown = _assumeInitiallyDown;
    cancelled = true;

    shell = new Shell(SWTThread.getDisplay(), SWT.DOUBLE_BUFFERED | SWT.ON_TOP);
    shell.setLayout(new FillLayout());
    final Display display = shell.getDisplay();

    composite = new Composite(shell, SWT.DOUBLE_BUFFERED);
View Full Code Here

    SWTSkin skin = null;
    try {
      skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}

    shell = new Shell(parent_shell,SWT.BORDER);
    shell.setText(_._("nightlybuildwarningwindow.title"));
    shell.setImage(SWTThread.getDisplay().getSystemImage(SWT.COLOR_WHITE));
    shell.setSize(400,320);
    shell.setLayout(new FillLayout());
    Composite content = new Composite(shell,SWT.NONE);
View Full Code Here

   
  }
 
  public static void main(String... args) {
    Display display = new Display ();
    Shell shell = new Shell (display);

    Composite c1 = new Composite(shell,SWT.BORDER);
    Composite c2 = new Composite(shell,SWT.BORDER);
   
    //createVerticalSash(10,50,shell,c1,c2);
    createHorizontalSash(10,50,shell,c1,c2);
   
    shell.open ();
    while (!shell.isDisposed ()) {
      if (!display.readAndDispatch ()) display.sleep ();
    }
    display.dispose ();

  }
View Full Code Here

    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    shell.setSize(400, 130);
    Utils.centreWindow(shell);
    shell.setText(_._("serverlistimportwindow.title"));
    shell.setImage(SWTImageRepository.getImage("import.png"));
View Full Code Here

   
    }catch(Throwable t) {}
   
    Display display = SWTThread.getDisplay();
   
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    shell.setImage(SWTImageRepository.getImage("server_add.png"));
    shell.setText(title);
   
    Utils.centreWindow(shell);
View Full Code Here

        skin = (SWTSkin) JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {
    }
   
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
   
    shell.setImage(SWTImageRepository.getImage("server_properties.png"));
    shell.setSize(500, 310);
    shell.setText(Localizer._("serverpropertieswindow.title"));
 
View Full Code Here

    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) { }
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    shell.setSize(400, 330);
    Utils.centreWindow(shell);
   
    shell.setImage(SWTImageRepository.getImage("updater.png"));
View Full Code Here

    }
   
   
    blue = new Color(display,0,0,128);
  
    Shell shell1=new Shell(display,SWT.ON_TOP);
  shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
  shell.setText(Localizer._("columneditorwindow.title"));
  shell.setImage(SWTImageRepository.getImage("columns_setup.png"));
 
    GridLayout layout = new GridLayout();
    shell.setLayout (layout);
View Full Code Here

  private ProgressBar progress_bar;
  private Label image;
  public SWTSplash() {
    SWTThread.getDisplay().syncExec(new JMRunnable() {
      public void JMRun() {
        shell = new Shell(SWTThread.getDisplay(),SWT.NULL);
        GridLayout layout = new GridLayout();
          layout.numColumns = 1;
          layout.horizontalSpacing = 0;
          layout.verticalSpacing = 0;
          layout.marginHeight = 0;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Shell

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.