Wrap-up
In this tutorial, you have learned the main differences between AWT/Swing and SWT/JFace. You also know how to simplify the migration of an existing Swing application by first porting the AWT layout managers to SWT, then creating wrapper classes around SWT controls that emulate the API of Swing, and finally converting the SWT events into AWT events sent to AWT listeners. You have also seen that Swing data models can be easily reused in SWT/JFace.
You studied in detail the equivalent SWT component for each Swing component, and saw the differences that exist and the issues you have to expect during the migration of your application.
The sample code used in this tutorial provided a guide for applying the migration techniques described in the first part of the tutorial to most of the standard Swing components. By using this sample code in your project, you should be able to migrate a Swing UI using standard components and layout managers. I've even offered a simplified the migration of code to a series of search-and-replace operations.
Finally, you saw a concrete example, where a Swing panel was ported to SWT by using this method. Hopefully all this will help you port your legacy Swing and AWT code to the higher-performing SWT toolkit.


