Difference between the paint() and repaint() methods?
Answer / ranganathkini
The paint method causes the component and and all its parts
to be painted on the Graphics context tat is passed in as
parameter.
If the component is a light-weight component, then a call to
the component's repaint method which invokes the paint
method as soon as possible. If the component is not a
light-weight component, then calling repaint is the same as
calling the update method.
| Is This Answer Correct ? | 19 Yes | 13 No |
What is getclass () getname () in java?
How do you compare objects in java?
What are the differences between graph and tree?
Can Exception handling we can handle multiple catch blocks?
How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?
How is hashcode calculated in java?
Can we declare register variable as global?
What is the common usage of serialization?
What is method overloading and method overriding?
How arrays are stored in memory in java?
For class CFoo { }; what default methods will the compiler generate for you>?
What is use of inner class in java?