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

difrence beetwen nutral point and ground

1 Answers  


a positively charged object is placed in the centre of a room with a uniform magnetic field . if the magnetic field is pointing east the object will

1 Answers  


what is the role of commutator in dc motor

2 Answers   Bhel,


please i need nautical science past question and answer

0 Answers  


why dogs are favourite pets?

0 Answers  


Sir Pl Provide the diploma nautical science sample paper

0 Answers  


the servents of india society was founded by ?

0 Answers  


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,


Which one of the following Union Ministries launched the Eco-Mark scheme for labeling the consumer products? (1) Ministry of Agro and Rural Industries (2) Ministry of Environment and Forests (3) Ministry of Food Processing Industries (4) Ministry of Consumer Affairs, Food and Public Distribution.

2 Answers   IES,


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,


1, 2, 6, 21, 88, __?

6 Answers   Infosys, Patni, Pratian Technologies, QA, TCS,


1)what is the abbreviation for DGFS/OCGS for bark written test? 2)how can we know, we r in which category?

1 Answers   BARC,


Categories