File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes String on Layer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "String on Layer" Watch "String on Layer" New topic

String on Layer

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi guys,

I have got a question to ask and hope that someone can give me an suggestion or some advice.... here is what i am trying to do....

I am working on a J2ME game and i have encounter some problem.... I am trying to draw a String beside a Moving Sprite or a Layer. So i did this

but the out come is that the String was not drawn at the place of the sprite

so i did a little check and see what is the problem and i found out that the X and Y then i got from the sprite was taking the Back ground layer's 0,0 as a refrence but for the drawString(); it is taking the view windows's top left corner as the 0,0 refrence point

so i would like to ask if any one of you guys got any suggestion to this problem or some advice on sloving this problem...

Thanks in advance


if (!WorkHard){
I agree. Here's the link:
subject: String on Layer
It's not a secret anymore!