Explain the difference between AWT and SWT?
Submitted by: AdministratorAbstract Windows Toolkit (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.
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.
In AWT, peers can provide services to minimize the differences between hosts.
SWT is a good enough portable solution but not as well as Swing.
Submitted by: Administrator
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.
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.
In AWT, peers can provide services to minimize the differences between hosts.
SWT is a good enough portable solution but not as well as Swing.
Submitted by: Administrator
Read Online Swing AWT Job Interview Questions And Answers
Top Swing AWT Questions
☺ | What is JFC and explain the features of JFC? |
☺ | What is the purpose of action interface in Swing? |
☺ | What is the use of double buffering in swings? |
☺ | Explain difference between Swing and JSF? |
☺ | What is the purpose of Transfer Handler Class? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |