SWT组复合边框消失

时间:2013-03-10 12:32:52

标签: java swt composite

按TAB键时,SWT组复合边框消失。 Shell有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);

1 个答案:

答案 0 :(得分:0)

我遇到过类似的问题,看起来这是SWT中的一个错误:

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