AbstractInformationControl.java 文件源码

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

项目:typescript.java 作者:
/**
 * @param parent
 *            parent control
 */
private void createFilterText(Composite parent) {
    // Create the widget
    filterText = new Text(parent, SWT.NONE);
    // Set the font
    GC gc = new GC(parent);
    gc.setFont(parent.getFont());
    FontMetrics fontMetrics = gc.getFontMetrics();
    gc.dispose();
    // Create the layout
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    data.heightHint = Dialog.convertHeightInCharsToPixels(fontMetrics, 1);
    data.horizontalAlignment = GridData.FILL;
    data.verticalAlignment = GridData.CENTER;
    filterText.setLayoutData(data);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号