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 the largest long allowed by java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is deserialization and how do we do deserialization?
What is a return in java?
What does java edition mean?
What is the superclass of exception?
Is there any sort function in java?
What are methods and how are they defined?
how to accept integer array in java
What is the default access specifier for variables and methods of a class?
Why 1 is not a prime number?
What are the different types of inheritance in java?