Inside SWT

Monday, November 06, 2006

The smart bit

After lots of thought, discussion and hard work, I am pleased and proud to finally announce: the SWT smart bit. Somehow, this new and exciting feature got left out of the Eclipse 3.3 M3 "New and Not-worthy". Here it is:

public static int SMART = 0;

Why settle for a dumb version of that old text control when you can spice it up with the smart bit:

new Text (parent, SWT.BORDER | SWT.SMART);

Even better, it works everywhere. Given a choice between two components, wouldn't you always take the smart one?

Swteve