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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 20
In Example 2-3. Setting the shell styles

The line just below the class declaration reads:

ShellStyles() {

It should read:

ShellStylesExample() {

otherwise the class has no constructor and nothing will happen.

Anonymous   
Printed
Page 29
Setting the Shell Icon, line 3

...icon on the right side of the titlebar.
should be:
...icon on the left side of the titlebar.

Anonymous   
Printed
Page 71
the section just above figure 4-4

replace the code in the "How do I do that?" section just above the figure, with:

final ToolItem sep2 = new ToolItem(bar, SWT.SEPARATOR);

final ToolItem checkItem = new ToolItem(bar, SWT.CHECK);

checkItem.setText("Auto Spell");

final ToolItem sep3 = new ToolItem(bar, SWT.SEPARATOR);

final ToolItem radioItem1 = new ToolItem(bar, SWT.RADIO);

radioItem1.setText("Zoom 1x");

final ToolItem radioItem2 = new ToolItem(bar, SWT.RADIO);

radioItem2.setText("Zoom2x");

final ToolItem sep4 = new ToolItem(bar, SWT.SEPARATOR);

final ToolItem radioItem3 = new ToolItem(bar, SWT.RADIO);

radioItem3.setText("Show Airports");

final ToolItem radioItem4 = new ToolItem(bar, SWT.RADIO);

radioItem4.setText("Show Cities");

Anonymous   
Printed
Page 153
2nd paragraph from the bottom

"...automatically filsl..."
should read:
"...automatically fills..."

Anonymous   
Printed
Page 179
Figure 11-4 caption

"AAn inline ..."
should read:
"An inline ..."

Anonymous   
Printed
Page 282
3rd paragraph from the bottom

The last sentence of this paragraph says "SWT" when it means "AWT".

The current text reads:
"Although the same comment may be made about other Java-component-based toolkits,
such as SWT and SWING, it's even more true of the SWT."

It should read:
"Although the same comment may be made about other Java-component-based toolkits,
such as AWT and SWING, it's even more true of the SWT."

Anonymous