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 -
I have stored my entire project in following ditectory- E:\MScIT Part 2\MobileLocationReminderCode:Image Mainlistmap; try { Mainlistmap = Image.createImage("/src/map.png"); } catch(Exception ex) { System.out.println(ex.getMessage()); }
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????

Reply With Quote
I did accordingly whatever you said in second and first suggestion. And problem is solved
. Thanx a lot Amitabh Sir for your support and Golden value suggestions..... keep on supporting like that....... Take care....


