Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowLayout


        tableViewer.setInput(reassignments);

        // add/delete buttons
        final Composite composite = new Composite(container, SWT.NONE);
        composite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
        composite.setLayout(new RowLayout());
        final Button addButton = new Button(composite, SWT.NONE);
        addButton.setText("Add");
        addButton.addSelectionListener(new SelectionListener() {
            public void widgetDefaultSelected(SelectionEvent e) {
                Reassignment reassignment = new Reassignment();
View Full Code Here


        tableViewer.setContentProvider(new NotificationsContentProvider());
        tableViewer.setInput(notifications);
        // add/delete buttons
        final Composite composite = new Composite(container, SWT.NONE);
        composite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
        composite.setLayout(new RowLayout());
        final Button addButton = new Button(composite, SWT.NONE);
        addButton.setText("Add");
        addButton.addSelectionListener(new SelectionListener() {
            public void widgetDefaultSelected(SelectionEvent e) {
                Notification notification = new Notification();
View Full Code Here

        tableViewer.setInput(recipients);
       
        // add/delete buttons
        final Composite composite = new Composite(container, SWT.NONE);
        composite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
        composite.setLayout(new RowLayout());
        final Button addButton = new Button(composite, SWT.NONE);
        addButton.setText("Add");
        addButton.addSelectionListener(new SelectionListener() {
            public void widgetDefaultSelected(SelectionEvent e) {
                Recipient recipient = new Recipient();
View Full Code Here

        // Create a 'container' composite for the group
        Composite grpComposite = new Composite(fWindow.getShell(), SWT.NONE);
        grpComposite.setToolTipText(groupId);
       
        // Create the layout for the 'group' container...-no- border margins
        RowLayout rl = new RowLayout();
            rl.marginBottom = rl.marginHeight = rl.marginLeft = rl.marginRight = rl.marginTop = rl.marginWidth = 0;
        grpComposite.setLayout(rl);
       
        // keep track of whether -any- of the widgets are resizeable
        boolean resizeable = false;
View Full Code Here

    Shell s = new Shell(d);
    Color background = d.getSystemColor(SWT.COLOR_BLACK);
    Color foreground = d.getSystemColor(SWT.COLOR_WHITE);
    s.setImage(new Image(null, "tray.gif"));
    s.setText("Icons");
    s.setLayout(new RowLayout());
    s.setBackground(background);

    BNetIcon[][] iconss = {
        IconsDotBniReader.getIcons(),
        IconsDotBniReader.getIconsSTAR(),
View Full Code Here

  static final int COUNT = 100000;

  public static void main(String[] args) {
    Display display = new Display();
    final Shell shell = new Shell(display);
    shell.setLayout(new RowLayout(SWT.VERTICAL));
    final Table table = new Table(shell, SWT.VIRTUAL | SWT.BORDER);
    table.addListener(SWT.SetData, new Listener() {
      public void handleEvent(Event event) {
        TableItem item = (TableItem) event.item;
        int index = table.indexOf(item);
View Full Code Here

    canvas1LData.width = 381;
    canvas1LData.height = 64;
    canvas1LData.left = new FormAttachment(0, 1000, 12);
    canvas1LData.top = new FormAttachment(0, 1000, 12);
    canvas1 = new Canvas(shell, SWT.NONE);
    RowLayout canvas1Layout = new RowLayout(org.eclipse.swt.SWT.HORIZONTAL);
    canvas1.setLayout(canvas1Layout);
    canvas1.setLayoutData(canvas1LData);
    Image image1 = new Image(display, IndicKeyboards.workingDirectory
        + "/resources/about.png");
    canvas1.setBackgroundImage(image1);
View Full Code Here

    Display d = new Display();
    Shell sh = new Shell(d, SWT.NO_TRIM);

    sh.setLayout(new GridLayout(2, true));
    sh.setText("Opening indic-keyboards...");
    sh.setLayout(new RowLayout(SWT.HORIZONTAL));
    sh.setBackground(d.getSystemColor(SWT.COLOR_DARK_GRAY));

    /*
     * @debug String temp = InitWin.workingDirectory +
     * "\\resources\\splash1.jpg"; System.out.println(temp);
View Full Code Here

     * @param numColumns number of columns (usually 2_
     * @return Composite with one label
     */
    private Composite subpart( Composite parent, String tag, int width  ){
        Composite subpart = new Composite( parent, SWT.NONE );       
        RowLayout across = new RowLayout();
        across.type = SWT.HORIZONTAL;
        across.wrap = true;
        across.pack = true;
        across.fill = true;
        across.marginBottom = 1;
View Full Code Here

        lineOpacity.addSelectionListener( this );
        lineOpacity.setToolTipText( Messages.SLDLineEditorPart_border_opacity_tooltip );
    }
   
    protected Control createPartControl( Composite parent ) {
        RowLayout layout = new RowLayout();       
        layout.pack = false;
        layout.wrap = true;
        layout.type = SWT.HORIZONTAL;
        layout.fill = true;
        layout.marginLeft = 0;
View Full Code Here

TOP

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

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.