SlideShare a Scribd company logo
1 of 1
Download to read offline
Which of the following is a difference between lightweight and heavyweight components.
Lightweight components render themselves using paint, but heavyweight components render
themselves using paintComponent.
Lightweight components render themselves using paintComponent, but heavyweight
components render themselves using paint.
Lightweight components can’t contain other components, but heavyweight components can.
Lightweight components can’t have layout managers, but heavyweight components can.
Solution
Answer:
Lightweight components render themselves using paintComponent, but heavyweight
components render themselves using paint.
Swing components are lightweight components and AWT components are heavy weight
components.
Swing components render themselves. Swing components are called lightweight because they do
not have any dependency with the underlying windowing system

More Related Content

More from mayorothenguyenhob69

Describe the similarities and differences between IPv4 & IPv6.So.pdf
Describe the similarities and differences between IPv4 & IPv6.So.pdfDescribe the similarities and differences between IPv4 & IPv6.So.pdf
Describe the similarities and differences between IPv4 & IPv6.So.pdfmayorothenguyenhob69
 
Compare different sexual and asexual life cycles noting their adapti.pdf
Compare different sexual and asexual life cycles noting their adapti.pdfCompare different sexual and asexual life cycles noting their adapti.pdf
Compare different sexual and asexual life cycles noting their adapti.pdfmayorothenguyenhob69
 
BackgroundIn many applications, the composition of a collection o.pdf
BackgroundIn many applications, the composition of a collection o.pdfBackgroundIn many applications, the composition of a collection o.pdf
BackgroundIn many applications, the composition of a collection o.pdfmayorothenguyenhob69
 
11.25In 2010, there were 117,538,000 households in the United Stat.pdf
11.25In 2010, there were 117,538,000 households in the United Stat.pdf11.25In 2010, there were 117,538,000 households in the United Stat.pdf
11.25In 2010, there were 117,538,000 households in the United Stat.pdfmayorothenguyenhob69
 
Which methodology may be used for detection of incorporated BrdUA.pdf
Which methodology may be used for detection of incorporated BrdUA.pdfWhich methodology may be used for detection of incorporated BrdUA.pdf
Which methodology may be used for detection of incorporated BrdUA.pdfmayorothenguyenhob69
 
What are the common conditions resulting in thrombocytosis Explain .pdf
What are the common conditions resulting in thrombocytosis Explain .pdfWhat are the common conditions resulting in thrombocytosis Explain .pdf
What are the common conditions resulting in thrombocytosis Explain .pdfmayorothenguyenhob69
 
What are some differences between the xylem and the phloem Solu.pdf
What are some differences between the xylem and the phloem  Solu.pdfWhat are some differences between the xylem and the phloem  Solu.pdf
What are some differences between the xylem and the phloem Solu.pdfmayorothenguyenhob69
 
Two families of sloths exist commonly in Central and South America (t.pdf
Two families of sloths exist commonly in Central and South America (t.pdfTwo families of sloths exist commonly in Central and South America (t.pdf
Two families of sloths exist commonly in Central and South America (t.pdfmayorothenguyenhob69
 
Two populations of rats are discovered on nearby islands. Describe t.pdf
Two populations of rats are discovered on nearby islands. Describe t.pdfTwo populations of rats are discovered on nearby islands. Describe t.pdf
Two populations of rats are discovered on nearby islands. Describe t.pdfmayorothenguyenhob69
 
30-32 Nuclear pores permit the passage of chromosomes outward. glu.pdf
30-32 Nuclear pores permit the passage of  chromosomes outward.  glu.pdf30-32 Nuclear pores permit the passage of  chromosomes outward.  glu.pdf
30-32 Nuclear pores permit the passage of chromosomes outward. glu.pdfmayorothenguyenhob69
 
Review Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfReview Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfmayorothenguyenhob69
 
B-tree insertion (Draw node) Show the results of inserting the keys .pdf
B-tree insertion (Draw node) Show the results of inserting the keys .pdfB-tree insertion (Draw node) Show the results of inserting the keys .pdf
B-tree insertion (Draw node) Show the results of inserting the keys .pdfmayorothenguyenhob69
 
Please help me find where I do something wrong with my programI am.pdf
Please help me find where I do something wrong with my programI am.pdfPlease help me find where I do something wrong with my programI am.pdf
Please help me find where I do something wrong with my programI am.pdfmayorothenguyenhob69
 
List the transformations to the basic graph and then graph the funct.pdf
List the transformations to the basic graph and then graph the funct.pdfList the transformations to the basic graph and then graph the funct.pdf
List the transformations to the basic graph and then graph the funct.pdfmayorothenguyenhob69
 
In your own words discuss the following. 1. Briefly describe the p.pdf
In your own words discuss the following. 1. Briefly describe the p.pdfIn your own words discuss the following. 1. Briefly describe the p.pdf
In your own words discuss the following. 1. Briefly describe the p.pdfmayorothenguyenhob69
 

More from mayorothenguyenhob69 (15)

Describe the similarities and differences between IPv4 & IPv6.So.pdf
Describe the similarities and differences between IPv4 & IPv6.So.pdfDescribe the similarities and differences between IPv4 & IPv6.So.pdf
Describe the similarities and differences between IPv4 & IPv6.So.pdf
 
Compare different sexual and asexual life cycles noting their adapti.pdf
Compare different sexual and asexual life cycles noting their adapti.pdfCompare different sexual and asexual life cycles noting their adapti.pdf
Compare different sexual and asexual life cycles noting their adapti.pdf
 
BackgroundIn many applications, the composition of a collection o.pdf
BackgroundIn many applications, the composition of a collection o.pdfBackgroundIn many applications, the composition of a collection o.pdf
BackgroundIn many applications, the composition of a collection o.pdf
 
11.25In 2010, there were 117,538,000 households in the United Stat.pdf
11.25In 2010, there were 117,538,000 households in the United Stat.pdf11.25In 2010, there were 117,538,000 households in the United Stat.pdf
11.25In 2010, there were 117,538,000 households in the United Stat.pdf
 
Which methodology may be used for detection of incorporated BrdUA.pdf
Which methodology may be used for detection of incorporated BrdUA.pdfWhich methodology may be used for detection of incorporated BrdUA.pdf
Which methodology may be used for detection of incorporated BrdUA.pdf
 
What are the common conditions resulting in thrombocytosis Explain .pdf
What are the common conditions resulting in thrombocytosis Explain .pdfWhat are the common conditions resulting in thrombocytosis Explain .pdf
What are the common conditions resulting in thrombocytosis Explain .pdf
 
What are some differences between the xylem and the phloem Solu.pdf
What are some differences between the xylem and the phloem  Solu.pdfWhat are some differences between the xylem and the phloem  Solu.pdf
What are some differences between the xylem and the phloem Solu.pdf
 
Two families of sloths exist commonly in Central and South America (t.pdf
Two families of sloths exist commonly in Central and South America (t.pdfTwo families of sloths exist commonly in Central and South America (t.pdf
Two families of sloths exist commonly in Central and South America (t.pdf
 
Two populations of rats are discovered on nearby islands. Describe t.pdf
Two populations of rats are discovered on nearby islands. Describe t.pdfTwo populations of rats are discovered on nearby islands. Describe t.pdf
Two populations of rats are discovered on nearby islands. Describe t.pdf
 
30-32 Nuclear pores permit the passage of chromosomes outward. glu.pdf
30-32 Nuclear pores permit the passage of  chromosomes outward.  glu.pdf30-32 Nuclear pores permit the passage of  chromosomes outward.  glu.pdf
30-32 Nuclear pores permit the passage of chromosomes outward. glu.pdf
 
Review Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfReview Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdf
 
B-tree insertion (Draw node) Show the results of inserting the keys .pdf
B-tree insertion (Draw node) Show the results of inserting the keys .pdfB-tree insertion (Draw node) Show the results of inserting the keys .pdf
B-tree insertion (Draw node) Show the results of inserting the keys .pdf
 
Please help me find where I do something wrong with my programI am.pdf
Please help me find where I do something wrong with my programI am.pdfPlease help me find where I do something wrong with my programI am.pdf
Please help me find where I do something wrong with my programI am.pdf
 
List the transformations to the basic graph and then graph the funct.pdf
List the transformations to the basic graph and then graph the funct.pdfList the transformations to the basic graph and then graph the funct.pdf
List the transformations to the basic graph and then graph the funct.pdf
 
In your own words discuss the following. 1. Briefly describe the p.pdf
In your own words discuss the following. 1. Briefly describe the p.pdfIn your own words discuss the following. 1. Briefly describe the p.pdf
In your own words discuss the following. 1. Briefly describe the p.pdf
 

Recently uploaded

21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 

Recently uploaded (20)

21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Which of the following is a difference between lightweight and heavy.pdf

  • 1. Which of the following is a difference between lightweight and heavyweight components. Lightweight components render themselves using paint, but heavyweight components render themselves using paintComponent. Lightweight components render themselves using paintComponent, but heavyweight components render themselves using paint. Lightweight components can’t contain other components, but heavyweight components can. Lightweight components can’t have layout managers, but heavyweight components can. Solution Answer: Lightweight components render themselves using paintComponent, but heavyweight components render themselves using paint. Swing components are lightweight components and AWT components are heavy weight components. Swing components render themselves. Swing components are called lightweight because they do not have any dependency with the underlying windowing system