paintComponent in java 2011
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
paintComponent in java 2011
Respected Sir A.A,
in the Example code 18.1, while overriding the paintComponent method of the myPanel class, you call the parent paintComponent method (super.paintComponent), i didn't understand this that why u did this????????
in the Example code 18.1, while overriding the paintComponent method of the myPanel class, you call the parent paintComponent method (super.paintComponent), i didn't understand this that why u did this????????
sharmila farooqi- Monstars
- Posts : 35
Join date : 2011-05-29
Re: paintComponent in java 2011
We use super.paintComponent(g) to clear the background of our panel. As there is nothing in the paintComponent() method of the parent class. So to make the background blank we will call the method of parent class, which will draw blank or simply clear every thing.
We are using super so that paintComponent() of parent class is called.
We are using super so that paintComponent() of parent class is called.
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» Packages in java 2011
» New development in java 2011
» Cookie in java 2011
» DML Statements in java 2011
» what are classes in java 2011 ?
» New development in java 2011
» Cookie in java 2011
» DML Statements in java 2011
» what are classes in java 2011 ?
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Today at 9:57 am by Ibad Khan Buledi
» house disrepair claims
Mon Apr 22, 2024 11:23 am by Joshuaadam
» Aloha Planner - Note-Taker
Thu Apr 11, 2024 4:52 pm by ali001
» Streaming Guide Film TV Series
Tue Apr 09, 2024 9:39 pm by ali001
» Apricot Tree Problems & Solutions ????|خوبانی کے پھل کو کیڑا لگنےسے بچانے کا طریقہ ????
Sun Apr 07, 2024 6:28 am by Zamaan Khan
» خوبانی کے پودے کی کاشت گرم علاقوں میں کرنی چاہیے یا نہی
Sun Apr 07, 2024 6:24 am by Zamaan Khan
» New Here
Sun Apr 07, 2024 6:15 am by Zamaan Khan
» Bajta Hua Sochoon Main Koi Saaz Na Aaye Naat
Sun Apr 07, 2024 6:14 am by Zamaan Khan
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sun Apr 07, 2024 6:06 am by Zamaan Khan