• Advertisement
Sign in to follow this  

Help Java and Midlet

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hola, may someone tell me what's the difference between those two lines of code????
int current=0;
String t = Maps[current].gfx; //gfx is a string class with "/map0.png" loaded
gfxMaps = Image.createImage( t );
and
String t = "/map0.png";
gfxMaps = Image.createImage( t );
first one doesn't works, second yes !!! WHY????????????? PLEEZ HELP !!!

Share this post


Link to post
Share on other sites
Advertisement
gfx doesnt seem a very appropriate name for a String containing the file name of the image. You should change it to fileName.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement