Appendix A. Creating projects with SWT/JFace

 

Before you can begin coding with SWT and JFace, you need to prepare the Eclipse development environment to include the two libraries. This appendix focuses on the steps needed to ensure that your GUI code will compile and execute properly.

We hold Eclipse in the highest esteem, but if you intend to market your own SWT/JFace applications, you’ll need to know how to build GUIs that can run without the Workbench. Therefore, this appendix is divided into two parts. The first outlines the steps needed to set up an SWT/JFace project in Eclipse. The second shows how to accomplish the same purpose using the Java SDK (Java, Javac, and so on).

A.1. Eclipse-based SWT/JFace development

All the code samples in this book are part of one large project, WidgetWindow, and each chapter adds classes in a separate package. Therefore, for this book, you need to perform the process outlined here only once.

A.1.1. SWT and JFace projects in Windows

In writing this book, we have assumed that you’re already familiar with Eclipse. But a brief review of creating projects will be helpful if you are out of practice. In particular, this section outlines the process of setting up the WidgetWindow project in Eclipse. For a full description of Eclipse projects, we recommend Eclipse in Action by David Gallardo, Ed Burnette, and Robert McGovern (Manning, 2003).

The steps for setting up an SWT/JFace Eclipse project in Windows are listed in table A.1.

A.2. SWT/JFace in standalone applications

 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest