Difference between AWT and SWT

Explain the difference between AWT and SWT.

Abstract Windows Toolkit (AWT):

- AWT is the original Java GUI tool kit.
- AWT's comes standard with every version of Java technology.
- It is very stable.
- It doesn’t need to be installed.
- AWT is a very simple tool kit with limited GUI components, layout managers, and events.
- Lowest-common denominator (LCD) approach is used for for AWT.
- Some commonly used components like Tables, Trees, Progress Bars, and others, are not supported.
- Applications that need more component types need to be created from scratch.
- In AWT, peers can provide services to minimize the differences between hosts.

Standard Window Kit (SWT):

- SWT is based on a peer implementation.
- It has an adequate set of controls to make most applications on a host-by-host basis, creating emulated controls for any not supplied by the particular host. Thus, it overcomes the LCD problem faced by AWT.
- In SWT, the peers are just wrappers on host controls.
- SWT is a good enough portable solution but not as well as Swing.
Difference between JFC & WFC
Difference between JFC and WFC - JFC supports robust and portable user interfaces.....
20 RMI Interview Questions and Answers
RMI interview questions and answers for freshers and experienced, RMI interview FAQ - Here are all possible RMI interview questions with answers that might be asked during interview....
What is Remote Procedure Calls, RPC?
Remote Procedure Calls, RPC - A request from one program that is located in one computer can be used by another computer in a network environment without understanding the underlying network details....
Post your comment