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
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.
why is it important to take m.e mechanical?is our l;ife make happier than other b.e courses only answer no comments
Can some1 please mail me the question papers of iiit hyderabad...my mail id is cenablogspot@gmail.com
c program to compare the initial portions of the two strings and return the matched portion if matches, otherwise return the empty string.
what is monetary policy
REPO Structure and terminology
Equivalent resistance of 100 homs and 200 homs resistors connected in parallel is
22. A solution of 1% (w/v) starch at pH 6.7 is digested by 15 μg of β‐amylase (mol wt 152,000). The rate of maltose (mol wt = 342) had a maximal initial velocity of 8.5 mg formed per min. The turnover number is
how to resize the components?
If Q is the point of ABCD rectangle where QA=3CM,QB=4CM,and QC=5cm then find the length of QD ?
Design the test cases for Boundary Value analysis of the following. Consider a program that prompts the user to input three numbers (say x, y, z) and the data type for input parameters ensures that these will be integers greater than 0 and less than or equal to 100. The program should then output the numbers in ascending order.
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
why does find out power factor?
types of highways
richman keeps in pocket poor man throws and kids eat me am an english word P-U--E--L