0

当我按 TAB 键时,SWT 组复合边框消失。壳牌有 3 组复合材料,但消失的问题只有一组。

    Group grpCustomerDetails = new Group(this, SWT.NONE);
    grpCustomerDetails.setForeground(SWTResourceManager
            .getColor(SWT.COLOR_DARK_GRAY));
    grpCustomerDetails.setFont(SWTResourceManager.getFont("Segoe UI", 8,
            SWT.NORMAL));
    grpCustomerDetails.setText("CUSTOMER DETAILS");
    grpCustomerDetails.setBounds(10, 49, 917, 273);
           .........................
            Group grpBankDetails = new Group(this, SWT.NONE);
    grpBankDetails.setText("BANK DETAILS");
    grpBankDetails.setBounds(954, 49, 396, 214);
           ..........................
            ScrolledComposite scrolledComposite = new ScrolledComposite(this,
            SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    scrolledComposite.setBounds(10, 335, 1340, 300);
    scrolledComposite.setExpandHorizontal(true);
    scrolledComposite.setExpandVertical(true);

    table = new Table(scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
4

1 回答 1

0

我遇到了类似的问题,这似乎是 SWT 中的一个错误:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=145662

于 2014-12-15T09:30:15.953 回答