Kamis, 08 Maret 2012

SWT, AWT, Java Swing

             Standard Widget Toolkit (SWT) is a graphical widget toolkit for use with the Java platform. It was originally developed by IBM and is now maintained by the Eclipse Foundation in tandem with the Eclipse IDE. It is an alternative to the Abstract Window Toolkit (AWT) and Swing Java GUI toolkits provided by Sun Microsystems as part of the Java Platform, Standard Edition. To display GUI elements, the SWT implementation accesses the native GUI libraries of the operating system using JNI (Java Native Interface) in a manner that is similar to those programs written using operating system-specific APIs. Programs that call SWT are portable, but the implementation of the toolkit, despite part of it being written in Java, is unique for each platform.
The toolkit is licensed under the Eclipse Public License, an open source license approved by the Open Source Initiative.

             Abstract Window Toolkit (AWT) is Java's original platform-independent windowing, graphics, and user-interface widget toolkit. The AWT is now part of the Java Foundation Classes (JFC) — the standard API for providing a graphical user interface (GUI) for a Java program.
AWT is also the GUI toolkit for a number of Java ME profiles. For example, Connected Device Configuration profiles require Java runtimes on mobile telephones to support AWT.

            Swing is the primary Java GUI widget toolkit. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.
Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check box and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables and lists.
Unlike AWT components, Swing components are not implemented by platform-specific code. Instead they are written entirely in Java and therefore are platform-independent. The term "lightweight" is used to describe such an element. The Hierarchy:

       


              Jadi, kalo penjelasan singkatnya, AWT itu toolkit GUI standar independen yang dipunyai java, misalnya textarea, button, checkbox, label, textfield. Si AWT ini juga bisa buat MobileApps dengan profil Java tertentu. Kalo SWT itu hampir sama kaya AWT, tapi dengan pengembang yang berbeda, terus kalo SWT itu Open Source, kalo AWT itu nggak, terus juga Libraries beda,kalo ini pake JNI, dan juga hanya bisa untuk suatu spesifik program dan Swing itu versi paling canggih dan kompleks dari JFC, jadi tinggal tambah pengertian SWT dan QWT, trus tambahin kompleks dan canggih :D
Contoh program ada di posting selanjutnya :)

Tidak ada komentar:

Posting Komentar