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 |
Why charat is used in java?
Write a factorial program using recursion in java?
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
Does treeset allow null in java?
what is the purpose of using rmisecuritymanager in rmi?
What is the use of coding?
The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None
How many return statement are allowed in a function?
What is arraylist e?
Can we override tostring method in java?
If your team member writes code with lots of static variables and static methods, will it cause any side effects?
What is the symbol for average?