C
cutoff
Hello
I don't want display in the emulator,the name of the canvas.
How can I do?
Regards
Nik
I don't want display in the emulator,the name of the canvas.
How can I do?
Regards
Nik
cutoff said:I don't want display in the emulator,the name of the canvas.
How can I do?
YesDarryl L. Pierce said:I don't understand your question. Can you rephrase it, please? What do you
mean by "the name of the canvas"? Do you mean the
javax.microedition.lcdui.Canvas class?
cutoff said:Yes
I don't want display the name of the my project when the canvas of the
my micro application is displayed.
Now if I create a project with J2me Wireless toolKit,with name "Test",
this name appears also when I run my application and display the
canvas.
How can I avoid it ?
Darryl L. Pierce said:You're not clearing the display area prior to writing your information. So,
when your MIDlet starts and your Canvas object begins writing to the
screen, it's writing on whatever's already there.
Try putting, in your AppCanvas.paint(Graphics) method, a call at the top to:
g.setColor(whatever color you want)
g.fillRect(0,0,getWidth(),getHeight());
And this will blank the screen for you.
cutoff said:Thanks a lot
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.