PrefPageMap3Color.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:mytourbook 作者:
private void createUI_10_Title(final Composite parent) {

        final Composite container = new Composite(parent, SWT.NONE);
        GridDataFactory.fillDefaults().grab(true, false).applyTo(container);
        GridLayoutFactory.fillDefaults().numColumns(2).applyTo(container);
//      container.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_RED));
        {
            // label: title
            final Label label = new Label(container, SWT.WRAP);
            label.setText(Messages.Pref_Map3Color_Label_Title);
            GridDataFactory.fillDefaults()//
                    .grab(true, true)
                    .align(SWT.FILL, SWT.CENTER)
                    .applyTo(label);

            // toolbar
            _toolBar = new ToolBar(container, SWT.FLAT);
        }

        // spacer
        new Label(parent, SWT.NONE);
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号