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

why networking is nessasary

1 Answers  


How I get sample Question papers of MAHAGENCO Entrance Exam??

8 Answers   Art-C, IBPS, MahaGenco, MSEB, SPSL,


i ve cleared sbi clerical.plz help me for my interview and send mail me at sushanta.toocool777@gmail.com

0 Answers  


Discussion Topic: “Statutory Defintions” Discussion Questions: Q1 Is it correct that a loan or an advance by a private limited company to a shareholder of the company is considered as payment of dividend? Explain your views. Q2 Will a loan or advance by a private limited company to its holding company be considered as payment of dividend if the subsidiary possesses sufficient amount of accumulated profits?

0 Answers   TCS,


please send me NTPC previous papers on my email ID 18amarjeet.civil@gmail.com or mr.yadav143@gmail.com

0 Answers  






Sir Pl Provide the diploma nautical science sample paper

0 Answers  


what will the output of this program. sint a=10,b; b=a++ + ++a; printf("%d,%d,%d,%d",b,a++,a,++a)

0 Answers  


Graduate Aptitude Test in Engineering ( GATE ) Question Paper - 1999 COMPUTER SCIENCE & ENGINEERING

1 Answers   NIC,


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

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,


Graduate Aptitude Test in Engineering ( GATE ) Question Paper - 2003 COMPUTER SCIENCE & ENGINEERING

7 Answers  


why is trnsformer rating in kva

2 Answers  


Categories