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

centre of agriculture marketing is located ...........

2 Answers   Agricon, SSC,


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,


plz send me bhel paper....

0 Answers  


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

0 Answers  


can i knw what are we supposed to read for the coming oces/dgfs 2009 exam?what kind of book are we supposed to study?

1 Answers   BARC,






why does find out power factor?

0 Answers  


Sir,i'm doing Engg. from MECHANICAL branch. now i'm in 3rd year and i want to do the preparation of GATE.sir please tell me i should refers which book and notes.and from which subject i should start my preparion.

0 Answers  


An air-india plane called ________exploded on the Irish sea on its flight from canada to india

1 Answers  


what is a isenticity

1 Answers   Suraj Constructions,


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,


is vertical heat exchanger has better heat transfer coefficient than horizontal heat exchanger?

0 Answers  


Why voltage drops in star connected motor And how IL=ph

0 Answers   Private,


Categories