I'm trying to draw costomized checkList on Canvas and it works on Motorola iDEN Emulator. I use drawString, drawLine, drawRec. After downloading the application to Motorola i88s phone, a drawLine and drawRec is showing but the text no longer appears at Motorola i88s device.
Check whether 'getLabel()' doesn't return an empty string.
I am not sure that the 'repaint()' call belongs at the end of 'paintArea(..)'. 'paintArea()' is most likely called from the paint() method of Canvas. It doesn't make sense to call 'repaint()' just after you have actually repainted the screen.
posted 13 years ago
Thank you for your help ^^; getLabel() works properly because my coding can run at emulator very well and I send the information of getLabel() and all they are correct. I've tried to run withough repaint() but it still doesn't work.
I changed Graphics.VCENTER into Graphics.TOP and now it works! According to MIDP1.0 specification, Graphics.VCENTER: Constant for centering "IMAGES" vertically around the anchor point. Graphics.HCENTER: Constant for centering "TEXT and IMAGES" horizontally around the anchor point.
I didn't realize that Graphics.VCENTER is not for centering "TEXT". Actually, VCENTER doesn't affect to run at Emulator but it does at real device! When you use this, BE CAREFUL! ^o^/
[ April 02, 2005: Message edited by: Conangirl Oh ] [ April 02, 2005: Message edited by: Conangirl Oh ]