Difference between AWT,Swing and swt

Hello,

I am giving a seminar about swing in which I need to point out differences between AWT,Swing and SWT(Software Widget Tool).

I have two questions:

1)I read that-A heavyweight component is one that is associated with its own native screen resource (commonly known as a peer). A lightweight component is one that "borrows" the screen resource of an ancestor-which makes it lighter.Can anybody explain What native screen resource is and how it is borrowed?

2)I read that SWT uses native widgets and how can it be better than swing?If it is in what way?

[586 byte] By [sruthima] at [2007-11-26 19:15:29]
# 1

Use Swing for new projects. AWT is the rendering layer underneath Swing in many cases, and AWT provides utility things like Graphics. SWT is an alternative to Swing which used more native rendering, but actually with Java 6, Swing is using a lot of native rendering.

Fire up NetBeans and use Matisse. Build an application. Run it under Windows, and then under Linux, and then realize how great it is.

chiralsoftware.neta at 2007-7-9 21:27:24 > top of Java-index,Desktop,Core GUI APIs...