Conclusion
This chapter presented the Browser project, a powerful custom browser that uses the Standard Widget Toolkit's Browser widget to display a browser from Java code. This project relies on the SWT, IBM's proposed successor to the Java AWT and Java Swing.
The SWT has a great deal of support written in native code for various platforms, which makes it fast and lets it take advantage of native resources such as built-in controls. To use the SWT, you have to make sure Java can reach that native support, so running programs that use the SWT take an extra step—you have to point Java at the right native-code library.
The Browser project presents the user with a toolbar full of buttons, a Text widget, and a browser window. The browser window in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access