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

what is theaverage weight of one brick?

0 Answers  


How can i calculate the Multifactor in HT meter? Pls tell me the Formullas.

1 Answers   HCL,


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

3 Answers   Invensys,


4. Human code is a 1) error correcting code 2) lossless source code 3) lossy source code 4) error detecting code

1 Answers   PGEE,


what is the difference between interface and abstract class

0 Answers  






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

1 Answers  


a capacitor offers easy path to

1 Answers  


how to prepare for the gate exam

0 Answers  


suppose a processor does not have any stack pointer register which of the following statements is true? a)it cannot have subroutine call instructions b)it cannot have subroutine call instruction but no nested subroutine calls c)nested subroutine calls are possible, but interrupts are not d)all sequences of subroutine calls and also subroutines are possible

1 Answers   GATE, NET,


hai i need to no hpcl portion i am going to write on march2 so please send to my id satish_don334@yahoo.co.in

0 Answers  


plz give me link or set of MAHAGNCO entance ques. papers

0 Answers  


how to resize the components?

0 Answers  


Categories