Books & Videos

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