Hi all, i am developing an application which displays non english characters using an image. The repaint is done only to the part of the canvas, so that the existing characters drawn earlier remain to unchanged. Some times the existing characters gets cleared, but thats some times, any idea why this is happening. My second question is how can i make the canvas bigger once it exceeds the size of the display so that the user can scroll down and continue typing? Thanks alot in advance. Anticipating a quick reply...
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Maybe you could consider using the LayerManager in the MIDP Game classes. It allows you to set a view port over an area that may be bigger than the screen.
You can define a Sprite from an image and then add it to a LayerManager. I am not sure if it will solve your problem but it may be worth checking it out. Check the MIDP 2.0 documentation for details.
It may also be easier to work with GameCanvas rather than Canvas, which is a bit "funny" in terms of repaint behaviour. At least GameCanvas (in theory) ensures that when you call flushGraphics() the screen gets updated synchronously.
PS: Ransinka, I am glad to see you're actively developing using J2ME ... [ March 31, 2006: Message edited by: Eduardo Marques ]