206.103.12.230 writes:
Hello,
I want to replace a String with another String at the same place without overwriting on the previous string in the Paint method.That is,The screen should be cleared, removing the first string and the second String should be written. Kindly help me in this regard.
Thanks
Vidya Shankar
204.31.245.98 writes:
one of the solution would be for the paint method to print the string defined in a class property. When the string has changed just call the update() method and the background will be redrawn and your new string will be printed
Herve Devos
202.54.7.29 writes:
See, itz like this.. if u paint using the paint method, then the screen will be repainted with the new String.. but if u want to use the update method, then u'll have to clear that area of the screen alone before u print the string.. u can also paint and empty string of that length before u paint this string if u want.. both will work..
ganchu