Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 145653 - Group box borders disappear when adapted to FormToolkit
Summary: Group box borders disappear when adapted to FormToolkit
Status: RESOLVED DUPLICATE of bug 145662
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 18:20 EDT by Dave Orme CLA
Modified: 2006-06-07 10:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Orme CLA 2006-06-06 18:20:28 EDT
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.
Comment 1 Dave Orme CLA 2006-06-07 10:37:40 EDT
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 ***