Key Points 9.33
As AWT relies on local platform, these GUI components are heavy weight components.
Hence, they are not suitable for application development. The disadvantages of being
platform(OS) dependent are as follows:
• GUI components may behave differently on different platforms. Thus, java’s tag word
‘Write Once run it any where’ is defeated.
• Look and feel is fixed and cannot be changed by the user.
• Heavyweight components impose restrictions such as GUI is always rectangular in
shape.
Java as part of solution to the abovestated problems introduced swing components in 1997.
The swing component is ideally suited as it is lightweight for application development. For
applet programming, AWT can be used as it is more portable. However ...