当我按 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);