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

When will the CBSE Class 12th result will declare

1 Answers  


how to prepare for the gate exam

0 Answers  


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

0 Answers  


giving an example describe how the modulus function works

0 Answers  


how to resize the components?

0 Answers  






For each Attribute,system automatically generate a set type for it,is it true or false?

0 Answers  


A rectangular wave guide a=5,b=3.75cm and freq 10 GHZ ,the wavelength is 7 cm. find mode of operation of wave guide

0 Answers   BSNL,


voltage ratings of HT and LT power cables

0 Answers  


please tell me some links where i got earlier exam paper of gate at free of cost...

0 Answers  


Respected sir/madam, My self R SANKAR. I am final year BE civil engineering student (2014-2018). i have shortlisted for isro exam 2018.last university exam (7th sem) result was declared i have scored 6.98CGPA. but they not provide last result mark sheet still now 1. What are the documents bring to isro exam venue? 2. either bring bonafide certificate from college instead of mark sheets?

0 Answers   ISRO,


lovers love it , friends need it relationship starts with it, life ends with it it is?

3 Answers   Invensys,


difference between connection less and wireless network ?

1 Answers   GATE, KLN College of Engineering,


Categories