2006-03-14

Eclipse Forms

The Eclipse Forms Programming Guide is a tutorial about creating forms in Eclipse.  One of its first example creates a text box that is supposed to have a 'flat' border.  However, if you actually run the sample code, it does not work -- no border is drawn.  After much gnashing of teeth, I determined that a line of code was missing from the example:

toolkit.paintBordersFor(form.getBody());

You must use this incantation to get field borders drawn.