×

Discussion Board

Results 1 to 12 of 12

Hybrid View

  1. #1
    Registered User
    Join Date
    Dec 2012
    Location
    Mumbai, Maharashtra, India
    Posts
    79

    Question How to add an icon in (implicit) list in J2me using Netbeans???

    I am developing J2ME app using NetBeans; I am created one List of menu using 'List' control. In that list there is a one menu named as Map. For this Map menu, I want to add an icon. I tried to do this & code is -

    Code:
    Image Mainlistmap;
    try
    {
            Mainlistmap = Image.createImage("/src/map.png");
    }
    catch(Exception ex)
    {
            System.out.println(ex.getMessage());
    }
    I have stored my entire project in following ditectory- E:\MScIT Part 2\MobileLocationReminder
    MobileLocationReminder folder is project folder contains all the stuffs of project such as src folder, dist folder, build folder, nbproject folder, build.xml file

    I have stored icon in src folder of & icon name is map.png and size is 30X33.

    I want to display a map.png icon to Map menu in the list.... but after doing all these things it is not giving me a desired result.

    Then Where do i store an image icon to access my project correctly & what path should be given to access an image in project????

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: How to add an icon in (implicit) list in J2me using Netbeans???

    You may want to look inside the resulting .jar file, if it contains map.png anywhere or not. (.jar files are actually using .zip format)

  3. #3
    Registered User
    Join Date
    Dec 2012
    Location
    Mumbai, Maharashtra, India
    Posts
    79

    Re: How to add an icon in (implicit) list in J2me using Netbeans???

    @ wizard_hu_ :

    Yess it is present in .jar file. So now?? what should I do????

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: How to add an icon in (implicit) list in J2me using Netbeans???

    Are you getting Exception ??

    if yes try - Mainlistmap = Image.createImage("/map.png");
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  5. #5
    Registered User
    Join Date
    Dec 2012
    Location
    Mumbai, Maharashtra, India
    Posts
    79

    Re: How to add an icon in (implicit) list in J2me using Netbeans???

    @im2amit :- That means i have to keep an icon outside the src folder along with other folders..... right????? even i did it before many time...... But never mind..... if you are saying then I will do that again.....

  6. #6
    Registered User
    Join Date
    Dec 2012
    Location
    Mumbai, Maharashtra, India
    Posts
    79

    Re: How to add an icon in (implicit) list in J2me using Netbeans???

    @im2amit :- Nothing happened....... problem still persist.......

Similar Threads

  1. Replies: 2
    Last Post: 2011-05-06, 14:43
  2. Implicit List and Tickers
    By am11 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2010-01-24, 13:12
  3. Making an item in an implicit list disabled
    By jaazz in forum Mobile Java General
    Replies: 1
    Last Post: 2006-08-02, 23:38
  4. problem with list.IMPLICIT
    By rathikathangaraj in forum Mobile Java General
    Replies: 2
    Last Post: 2005-06-23, 07:23
  5. Implicit List problem in series 60 emulator
    By jean_mountford in forum Mobile Java General
    Replies: 0
    Last Post: 2002-07-05, 19:10

Posting Permissions

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