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 |
Which sorting is used in arrays sort in java?
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.
2 Answers Infosys, Tech Mahindra,
Which class is the immediate superclass of the Container class?
What is HashTable?
System.out & System.in are final static data member of System class but we can change there reference through setOut() & setIn() method how...
Where pragma is used?
How to perform binary search in java?
How to reduce flicking in animation?
Is hashset ordered java?
What is void class in java?
How to find the largest value from the given array.
What is the file type?