×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    J2me polish background image problem

    hello
    i am unable to get image background in my J2me polish application.
    i have written the code:

    .mymainScreenimg
    {
    background
    {
    type: image;
    color: transparent;
    image: url( bg.PNG );
    }
    }


    but unable to get the image on background while running the j2me polish.
    Moreover image in background is not coming while i run sample program of j2me polish-menu too.
    means image is not showing in background neither in sample projects nor in self created projects
    background color comes in background but not image.

    please solve my problem as i have to complete my application

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: J2me polish background image problem

    wher have you placed this code ? some java class, build.xml or the css file ?
    have you placed the image in the right directory (if im not mistaken that should be /resources/ or something like that) ?

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Re: J2me polish background image problem

    ya i have have placed image in right dir
    n my problem is solved now. thanks for the reply sir

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: J2me polish background image problem

    would you be so kind to post your solution ?
    for future reference for people having the same problem...

  5. #5
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Re: J2me polish background image problem

    ya of course i would share this.. actually i did 1 mistake in code. the right code for polish.css is here:

    .myBackimage
    {
    background-image: url(gradient.PNG);
    }

    above code is only for the background image and use this style in .java program just before you create "form" like :
    //#style myBackimage
    f1 = new Form("Display Form with Items");



    and yes image should be in a same directory where you have created your polish.css.


    Thanx.

  6. #6
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: J2me polish background image problem

    thx, that might be usefull for others

Similar Threads

  1. J2ME Polish Problem..
    By matifk in forum Mobile Java General
    Replies: 0
    Last Post: 2008-05-07, 11:05
  2. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  3. Image Problem
    By Spider_Eg in forum Mobile Java General
    Replies: 2
    Last Post: 2007-01-30, 13:52
  4. J2ME Polish Version 1.0
    By enough in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-27, 01:10
  5. J2ME Polish Version 1.0 RC6
    By enough in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-20, 11:25

Posting Permissions

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