Community
Participate
Working Groups
Given: public class FormToolkitBug { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); FormToolkit ft = new FormToolkit(display); Group g = new Group(shell, SWT.BORDER); g.setText("Some text"); ft.adapt(g); g.setLayout(new RowLayout(SWT.VERTICAL)); ft.createText(g, ""); ft.createText(g, ""); shell.setSize(800, 600); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } Unexpected behavior: When I type something into the first Text and tab to the next, the group box border disappears. If you cover the Shell with another window and then Alt-tab back to the Shell, the border displays again. Expected behavior: The border shouldn't disappear when tabbing between controls inside a group box.
It turns out this is a bug in SWT, not FormToolkit per se. See bug 145662. *** This bug has been marked as a duplicate of 145662 ***