Buying Options
SWT: A Developer's Notebook
Print $29.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
In typical Developer's Notebook style, you'll learn how to take SWT out for a spin, make it work for you,and turn it upside down, all without wasted words or space. Each lab in this notebook details a specific task; you can read from the first page to the last, look up just what you need to know, and even squeeze this book into your laptop bag as a quick reference when you forget how to create a multi-tabbed view.
Full Description
Table of Contents
  1. Chapter 1 Getting Started

    1. Downloading the SWT Library

    2. Configuring Eclipse for SWT Development

    3. Supplying the SWT Package to the Java Compiler

    4. Specifying the Location of the Native Library

    5. Using swt.jar in Multiple Projects

  2. Chapter 2 SWT Shells

    1. Creating a Simple Shell

    2. Executing the Example

    3. Working with Shell Styles

    4. Creating a Shell Styles Example

    5. Creating Child Shells

    6. Creating Multiple Child Windows

    7. Opening True Dialogs

    8. Setting the Shell Title Text

    9. Setting the Shell Icon

  3. Chapter 3 SWT Menus

    1. Creating the Menu Bar

    2. Adding Drop-Down Menus

    3. Adding Separator Bars

    4. Creating a Complete Menu System

    5. Adding Cascading Submenus

    6. Making Menus Perform the Intended Action

    7. Working with Other Menu Item Styles

    8. Determining the State of CHECK and RADIO Menu Items

    9. Adding Keyboard Shortcuts

    10. Creating Pop-Up Menus

  4. Chapter 4 SWT Toolbars

    1. Creating the Toolbar

    2. Creating Toolbar Buttons

    3. Creating a Complete Toolbar Example

    4. Making the Buttons Work—Adding Listeners

    5. Adding Separators to Your Toolbar

    6. Adding Check and Radio ToolItems

    7. Determining Whether a Check or Radio Button Is Selected

    8. Using Tool Tips

  5. Chapter 5 SWT Text Fields

    1. Adding Text Fields to a Shell

    2. Adding a Border to a Text Field

    3. Positioning the Text Field

    4. Setting the Tab Order

    5. Setting the Text Size Limit

    6. Interacting with the Text in the Text Widget

    7. Populating Text Fields from a Database

    8. Appending Text to a Text Field's Contents

    9. Creating Multiline Text Fields

    10. Wrapping Text

    11. Adding Scrollbars

    12. Reacting to Text Events

    13. Performing Field Validation

    14. Creating Display-Only Text Fields

    15. Creating Password Fields

  6. Chapter 6 SWT Buttons

    1. Creating Push-Style Buttons

    2. Responding to Button Clicks

    3. Creating Check Buttons

    4. Determining CHECK Button Status

    5. Adding Listeners to CHECK Buttons

    6. Using Radio-Style Buttons

    7. Causing No Radio Button to be Selected

    8. Creating Toggle Buttons

    9. Determining the State of a Toggle Button

    10. Creating Arrow Buttons

    11. Using Images with Buttons

    12. Setting Tool-Tip Text

    13. Enabling and Disabling Buttons

  7. Chapter 7 SWT Lists

    1. Creating a List

    2. Adding Items to a List

    3. Inserting Items in the Middle of a List

    4. Populating a List from a Database

    5. Removing Items from a List

    6. Determining the Selected Items

    7. Determining the Selected Item with Multiple Selections

    8. Causing an Item to Appear Selected

    9. Changing an Item's Text Value

    10. Adding Scrollbars to a List

  8. Chapter 8 The SWT Combo

    1. Creating a Combo List

    2. Adding Items to a Combo List

    3. Creating a Working Combo List

    4. Getting the Value of the Selected Item

    5. Programmatically Selecting an Item

    6. Removing Items from a Combo List

    7. Adding Events to Combo Widgets

    8. Allowing Additions to the Combo List

    9. Getting and Setting Text in the Text Portion of the Combo

    10. Setting the Maximum Length for Entries

    11. Deselecting Text

    12. Responding to Item Changes in the Combo

    13. Using the SIMPLE Style

  9. Chapter 9 SWT Layouts

    1. What Are the SWT Layouts?

    2. Attaching a Layout to a Container

    3. Filling the Entire Container with Widgets

    4. Changing Widget Placement in FillLayouts

    5. Lining Up Widgets Using RowLayout

    6. Controlling Wrapping of Widgets with RowLayout

    7. Controlling Sizing of Widgets with RowLayout

    8. Creating Vertical Rows

    9. Creating a GridLayout

    10. Creating Column Headings

    11. Controlling Widget Sizing and Alignment

    12. Forcing Widgets to Span Multiple Cells

    13. The SWT FormLayout

    14. Creating a Simple Password Entry Form

  10. Chapter 10 SWT Composites and Groups

    1. Subclassing the Composite Class

    2. Using the TextPaneComposite Class on a Shell

    3. Using Composite Class Styles

    4. Using the Group Class

    5. Creating Multiple Instances of a Composite Subclass

    6. Using Composites to Achieve Complex Designs

    7. An Alternate Approach

  11. Chapter 11 SWT Tabbed Folders

    1. Creating an Instance of TabFolder

    2. Creating the Individual Tabs

    3. Adding Widgets to the Tabs

    4. Creating a Complete Tabbed Folder Example

    5. Setting a Default Tab

  12. Chapter 12 SWT Tables

    1. Creating a Simple Table

    2. Highlighting Rows upon Selection

    3. Allowing Multiple-Row Selection

    4. Selecting Items Programmatically

    5. Changing the Background Color

    6. Creating a Searchable Table

    7. Setting the Background of a Single Cell

    8. Adding Find-and-Replace Functionality

  13. Chapter 13 SWT Trees

    1. Creating the Tree

    2. Adding Items to the Tree

    3. Adding Items to Other Items

    4. Creating a Full Tree Example

    5. Using Images with TreeItem

    6. Changing the Image When the Item Is Expanded

    7. Using Trees with Other Widgets

    8. Working with Other Tree Styles

    9. Determining the Checked Item(s)

  14. Chapter 14 Other SWT Listeners

    1. Using KeyListener

    2. Using MouseListener

    3. Working with the MouseEvent Class

    4. Responding to Shift-Click Events

    5. Working with the MouseMoveListener

    6. Using the MouseTrackListener

  15. Chapter 15 SWT CoolBars

    1. Creating a CoolBar

    2. Using Events with CoolBars

    3. Adding Widgets Other Than Buttons to the CoolBar

    4. Preventing the User from Rearranging the CoolBar

    5. Using ToolBars with CoolBars

  16. Chapter 16 SWT Slider and ProgressBar

    1. The SWT Slider Class

    2. Using the SWT ProgressBar Class

    3. Creating a Moving Progress Bar

  17. Chapter 17 SWT Standard Dialogs

    1. Using the SWT MessageBox Class

    2. Using the SWT FileDialog Class

    3. Using the SWT FileDialog Class

    4. Using the SWT FileDialog Class

    5. The SWT ColorDialog Class

    6. Using the SWT FontDialog Class

    7. Using the SWT PrintDialog Class

  18. Chapter 18 A Complete SWT Application

    1. Designing the Application

    2. Developing the Application

    3. The End of the SWT Road

  1. Colophon

View Full Table of Contents
Product Details
Title:
SWT: A Developer's Notebook
By:
Tim Hatton
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
October 2004
Pages:
320
Print ISBN:
978-0-596-00838-3
| ISBN 10:
0-596-00838-4
Customer Reviews
About the Author
  1. Tim Hatton

    Tim Hatton is the President of Millennium Learning Technologies, a company specializing in the custom design of IT courseware and learning methodologies. He has taught courses to developers at IBM, Lockheed-Martin, LexisNexis and other Fortune 500 technology companies. Additionally, he has developed applications for these, and other companies, using a wide variety of tools from PowerBuilder to Java. Tim has a BA in Political Science from Wright State University and a JD from the University of Dayton School of Law and was a practicing attorney in a prior life.

    View Tim Hatton's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The Developer's Notebook series is modeled on the tradition of laboratory notebooks. Laboratory notebooks are an invaluable tool for researchers and their successors.

The purpose of a laboratory notebook is to facilitate the recording of data and conclusions as the work is being conducted, creating a faithful and immediate history. The notebook begins with a title page that includes the owner's name and the subject of research. The pages of the notebook should be numbered and prefaced with a table of contents. Entries must be clear, easy to read, and accurately dated; they should use simple, direct language to indicate the name of the experiment and the steps taken. Calculations are written out carefully and relevant thoughts and ideas recorded. Each experiment is introduced and summarized as it is added to the notebook. The goal is to produce comprehensive, clearly organized notes that can be used as a reference. Careful documentation creates a valuable record and provides a practical guide for future developers. Jamie Peppard was the production editor and the proofreader for SWT: A Developer's Notebook. Audrey Doyle was the copyeditor. Mary Agner provided production assistance. Sarah Sherman and Claire Cloutier provided quality control. Ellen Troutman wrote the index.

Edie Freedman designed the cover of this book. Clay Fernald produced the cover layout with QuarkXPress 4.1 using the Officina Sans and JuniorHandwriting fonts.

David Futato designed the interior layout, with contributions from Edie Freedman. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies.

The text font is Adobe Boton; the heading font is ITC Officina Sans; the code font is LucasFont's TheSans Mono Condensed, and the handwriting font is a modified version of JuniorHandwriting made by Tepid Monkey Foundry and modified by O'Reilly. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Colleen Gorman.

  • Book cover of SWT: A Developer's Notebook