Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
   
    setLayout(new FormLayout());
   
    Composite dir_list = new Composite(this,SWT.NONE);
    Composite shared_files = new Composite(this,SWT.NONE);
   
    SashControl.createHorizontalSash(50, 50, this, dir_list, shared_files);
View Full Code Here


  public TransfersTab(Composite shell,JMuleCore core) {
    super(shell);

    _core = core;
   
    setLayout(new FormLayout());
   
    download_panel = new Composite(this,SWT.NONE);
    upload_panel = new Composite(this,SWT.NONE);
   
    SashControl.createHorizontalSash(50, 50, this, download_panel, upload_panel);
View Full Code Here

    _jkad = _core.getJKadManager();
    setLayout(new GridLayout(1,false));
   
    final Composite tab_content = new Composite(this,SWT.NONE);
    tab_content.setLayoutData(new GridData(GridData.FILL_BOTH));
    tab_content.setLayout(new FormLayout());
       
    routing_table_container = new Group(tab_content,SWT.NONE);
    Group kad_tasks_container = new Group(tab_content,SWT.NONE);
    routing_table_container.setText(_._("mainwindow.kadtab.kad_nodes"));
    kad_tasks_container.setText(_._("mainwindow.kadtab.kad_tasks"));
View Full Code Here

    try {
     
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
   
    }catch(Throwable t) {}
    FormLayout form = new FormLayout ();
    setLayout (form);
   
    server_table_panel = new Composite(this,SWT.NONE);
    server_table_panel.setLayout(new FillLayout());
   
    server_info_panel = new Composite(this,SWT.BORDER);
   
   
    SashControl.createHorizontalSash(20, 50, this, server_table_panel, server_info_panel);
   
    server_info_panel.setLayout(new FormLayout());
   
    Composite server_messages = new Composite(server_info_panel,SWT.NONE);
    server_messages.setLayout(new FillLayout());
   
    Composite peer_info = new Composite(server_info_panel,SWT.NONE);
View Full Code Here

  final ProgressBar bar = new ProgressBar(splash, SWT.NONE);
  bar.setMaximum(numProgIncr[0]);
  Label label = new Label(splash, SWT.NONE);
  label.setImage(image);
 
  FormLayout layout = new FormLayout();
  splash.setLayout(layout);
 
  FormData labelData = new FormData();
  labelData.right = new FormAttachment(100, 0);
  labelData.bottom = new FormAttachment(100, 0);
View Full Code Here

     * @throws Exception
     */
    private void initCalendarPane() throws Exception {

        // set layout defaults
        FormLayout thisLayout = new FormLayout();
        thisLayout.marginHeight = 0;
        thisLayout.marginWidth = 0;
        contentsPane.setLayout(thisLayout);

        // update or set the locale
View Full Code Here

     * (non-Javadoc)
     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets .Composite)
     */
    public void createControl(Composite parent) {
        Composite composite = new Composite(parent, SWT.NULL);
        composite.setLayout(new FormLayout());
        composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
        composite.setFont(parent.getFont());

        setControl(composite);

View Full Code Here

    @Override
    public void createControls(Composite parent,
            final TabbedPropertySheetPage aTabbedPropertySheetPage) {
        super.createControls(parent, aTabbedPropertySheetPage);
        Composite c = new Composite(parent, SWT.NONE);
        c.setLayout(new FormLayout());
        delegate.createPartControl(c);
        FormData data = new FormData();
        data.left = new FormAttachment(0, 0);
        data.right = new FormAttachment(100, 0);
        data.top = new FormAttachment(0, 0);
View Full Code Here

    decorator.addGroupedListener( SWT.Selection, null );
  }

  @Test( expected = IllegalStateException.class )
  public void testAddGroupedListenerFailsWithFormLayout() {
    composite.setLayout( new FormLayout() );

    decorator.addGroupedListener( SWT.Selection, mock( Listener.class ) );
  }
View Full Code Here

   *            the container of the example
   */
  public WebBrowser(Composite parent) {
    initResources();
    final Display display = parent.getDisplay();
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
    ToolBar toolbar = new ToolBar(parent, SWT.NONE);
    final ToolItem itemBack = new ToolItem(toolbar, SWT.PUSH);
    itemBack.setText(getResourceString("Back"));
    final ToolItem itemForward = new ToolItem(toolbar, SWT.PUSH);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FormLayout

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.