×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    9

    Unhappy How do I insert a background image to my midlet without using canvas? - J2ME

    Hi,
    plz I would like to know how could I insert a background image to my midlet, without using canvas, using J2ME technology.
    I need to set a list of items & some GUI components on that background,
    also i need to know how to insert tabbed panes, panels,...etc (something that replace javax.swing.* in the standard J2SE)

    I tried to use Jsomething called J2MEPolish & something called KAWT,
    i downloaded their jar files but they were bad and always gives me an exception (Error previrifing class or something like that... and other exceptions like class ... not found which means that the jar files are not complete)

    so please help me with another methods if you can but plz ASAP

    thanx

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: How do I insert a background image to my midlet without using canvas? - J2ME

    polish is complete, so the error is probably yours
    you can also try owt

  3. #3
    Regular Contributor
    Join Date
    Aug 2003
    Location
    Oldenburg, Germany
    Posts
    118

    Re: How do I insert a background image to my midlet without using canvas? - J2ME

    It's not possible to use background images on a form without a canvas. Even if you use J2ME Polish you still make use of a canvas.
    corpris.com - j2me mobile applications

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    7

    Re: How do I insert a background image to my midlet without using canvas? - J2ME

    U can insert images using form . Into form u can add imageitem.

    or u can add custom item bundled with an image and then append to form

    Image img=Image.createImage();
    form.append(img);
    or using customitem

    Create a subclass of CustomItem , then build an image either with Sprite class
    or g.drawImage, for that u want to add the image to the src folder.

    go ahead and reply

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    11

    How to insert an image on the welcome form

    Hi,
    I want to display a logo at startup of application but still unable to do so.
    Kindly help and if someone have code post that.
    thanx in advanc

  6. #6
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: How to insert an image on the welcome form

    Hi,

    I think you are talking about the splash screen of the application in which as soon as the application is started one image with application name and company logo is displayed for some time.

    Do do so write a class thread class and inside its run method display the image for the time you want.

    Now from your startApp, create this thread and start it. wait for the time of splash completion and then move ahead with your normal processing.

    Regards
    Amit

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    11

    Re: How do I insert a background image to my midlet without using canvas? - J2ME

    Hi amitmishra19,
    I am new in J2ME so kindly let me know detail little bit more.
    thanx.

  8. #8
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How do I insert a background image to my midlet without using canvas? - J2ME

    Hi Xahoor,

    you can get some useful code for your SplashScreen here:

    http://java.sun.com/developer/J2METe...01/tt0820.html

    Hope it helps,
    Pit

Similar Threads

  1. Replies: 0
    Last Post: 2005-09-13, 10:10
  2. Canvas versus MIDlet
    By docaoimh in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-14, 14:20
  3. J2ME: Midlet running on the Background...
    By java7 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-10-22, 08:50
  4. background image in series60
    By jack44 in forum Symbian
    Replies: 1
    Last Post: 2003-07-31, 18:13
  5. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×