Java Swing AWT Question:

What are heavyweight and lightweight components?

Tweet Share WhatsApp

Answer:

In Java AWT - Abstract Window Toolkit, GUI components created are OS dependent. When they are created, each component forms a peer component due to which they are called heavyweight components.

Swing components are platform independent. No peer components are formed due to which they are called lightweight components.

Download Swing AWT PDF Read All 29 Swing AWT Questions
Previous QuestionNext Question
Explain the differences between Swing and AWT?What are controls and what are different types of controls in AWT?