what does JComponent.invalidate()or JComponent.invalidate()do?



what does JComponent.invalidate()or JComponent.invalidate()do?..

Answer / bombe swapnil

Invalidate()
This method makes components invalid , along with all of its
ancestor containers up to the
nearest validate root. Validate root can be any container
which doesn’t change the size when their child components
change size. This method need to call when components needs
to have new layout to be done.

Revalidate()
When we call invalidate() it doesn’t automatically calls
validate to make Components to be valid again. Revalidates
calls invalidate first and then make components valid by
calling validate method. Most swing components calls
revalidate() method when we change the size of the
components and call the repaint method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More GATE Interview Questions

i live in water, if you cut my head i am your door,if you cut my tail i am a fruit,if you cut both then i am with u.who am i?

1 Answers   Infosys,


why is it important to take m.e mechanical?is our l;ife make happier than other b.e courses only answer no comments

0 Answers  


could u send me the model papers for drug inspector exam at imrupinder@gmail.com

0 Answers  


Why 6.6kw motor star connectet delta not connected

1 Answers   Indian Bank,


sir I need "INDIAN Engg. Services" Question Paper

0 Answers  






in vfd why we did not give directac ac supply?

0 Answers  


I am searching for gate paper and solution of 2003 and 2008 if u have any material related to it plz give me link so i can download it?my email add is hrishi_mehta2001@yahoo.com

1 Answers   College School Exams Tests, GATE, TCS,


Tripura Board of Secondary Education Agartala, Tripura Examination Results 2009 Tripura Board of Secondary Education Higher Secondary (+2 Stage) Examination - Year 2009

0 Answers  


difference between connection less and wireless network ?

1 Answers   GATE, KLN College of Engineering,


what is a isenticity

1 Answers   Suraj Constructions,


What is the comman name of cis- dichloro Dicyano platinate?

2 Answers   IISc,


A new group of countries called BASIC is frequently mentioned in the news. which of the following is not one of them? (a) Argentina (b) Brazil (c) India (d) South Africa

2 Answers  


Categories