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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

sir , please send me previous gate ece questionpapers with explanations.i want 15 years of gate ece question papers

1763


I have cleared sbi clerk and have interview in 26/04/2010.But I am M.Ed & B.Ed,i want to u know my answed about not chose the teaching post

1924


please i need nautical science past question and answer

2364


the servents of india society was founded by ?

1583


plz send me bhel paper....

1764






sir can you send me previous question paper of jsplGET entrance test

1902


how to prepare for bcil bitp

1703


If Q is the point of ABCD rectangle where QA=3CM,QB=4CM,and QC=5cm then find the length of QD ?

2449


I am looking for bank exam coaching in Hyderabad. Can anybody tell me which is the best institute for BANK and which branch is good giving me branch details.

1784


Sir Pl Provide the diploma nautical science sample paper

2067


Can some1 please mail me the question papers of iiit hyderabad...my mail id is cenablogspot@gmail.com

2093


why the uncontrolled rectifiers are converting fixed ac to fixed dc only why not it is converting variable dc

1419


weather any body knows how th partiton of sections in rrb is aote 1,genera nowlge 2,intellgince 3,maths 4,english 5,science

1981


i have M.TECH interview on RF AND MICROWAVE ENGINEERING IN IIT (KHARAGPUR/ROORKEE).KINDELY TELL WHAT SUBJECTS SHOULD I READ AND WHAT ARE THE INTERVIEW QUESTIONS.

6224


What are the most asked questions for learner operators in the interview for eskom?

1497