The second diagram is the containment structure of the UI objects. The first diagram is the simplified inheritance diagram of the UI objects. An SWT application from different perspectives.įigure 1 shows an SWT application from different perspectives. Every SWT application requires at least one Display and one or more Shell instances.įigure 1. Shell is the window in an application managed by the OS window manager. Displays are responsible from managing event loops and controlling communication between the UI thread and other threads. Building Blocks of an SWT Applicationĭisplay, Shell, and Widgets are basic building blocks of an SWT application. If a widget is not available on the host platform, SWT emulates the unavailable widget. The SWT framework accesses native widgets through JNI. Consequently, IBM has created a new GUI library, called SWT,which solves the problems seen with the AWT and the Swing frameworks. IBM has decided that neither of the approaches fulfill their requirements. Moreover, Swing applications consume too much memory, which is not suitable for small devices such as PDAs and Mobile Phones. Although they’re the latest improvements in the JVM, Swing applications suffer performance problems that do not exist in their native counterparts. For instance, Swing applications no longer look like native applications. This approach solved the LCD problem and provided a rich set of widgets but it has created other problems. To solve this problem, Sun has created a new framework that uses emulated widgets instead of native widgets. In other words, if platform A has widgets 1–40 and platform B has widgets 20–25, the cross-platform AWT framework only offers the intersection of these two sets. The LCD problem causes loss of major platform features. The AWT framework uses native widgets but it was suffering from a LCD problem. ![]() Sun has created a cross platform GUI framework AWT (Abstract Windowing Toolkit). Why has IBM created another GUI? Why have not they used existing Java GUI frameworks? To answer those questions, we need to go back to the early days of Java. SWT is a cross platform GUI developed by IBM. ![]() “The best way to predict the future is to invent it.”-Alan Kay 1. We may make money when you click on links to our partners. content and product recommendations are editorially independent.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |