Errata

SWT: A Developer's Notebook

Errata for SWT: A Developer's Notebook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 4
How do I do that?

Using the GTK port of SWT under linux you need swt-pi.jar in addition to swt.jar.

Anonymous   
Printed Page 29
Setting the Shell Icon

"...icon on the right side..."
should read:
"...icon on the left side..."

Anonymous   
Printed Page 42
Example 3-5

below 3rd line of Example 3-5, insert line:
import org.eclipse.swt.events.*

Otherwise lines containing 'new SelectionListener()' will be in error.

Anonymous   
Printed Page 168
class GroupShellExample, constructor 6th and 8th lines

final GroupExample ge1 = new GroupExample(s, SWT.SHADOW_ETCHED_IN,
"Option Group One" );
and
final GroupExample ge2 = new GroupExample(s, SWT.SHADOW_ETCHED_IN,
"Option Group Two" );
invalid GroupExample constructor.

>>>> same error in chapter 11 class TabbedShellExample



In all cases remove 3rd argument

Joe  Dec 07, 2009 
Printed Page 211
Example 14-1

The 4th line of code should be if (c.getText().length() < 0)

not (c.getText().length() > 0) as is printed in the book.

Anonymous