Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User karuna.'s Avatar
    Join Date
    Apr 2011
    Posts
    8
    Iam new to netbeans and Lwuit here i have to display image in the form . i have tried the code for displaying the image
    Image image = Image.createImage("/res/baldy.png");
    Label pictureLabel = new Label(image);
    f.addComponent(pictureLabel);


    but when i use this code it displays the error in the path. I don't know which path i should use it. Please say in details how to give the path and say whether i have to add any photo files in my project

  2. #2
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Welcome to the Forum Nokia Developers Board.

    I will recommend you that you start this thread in the Mobile Java Section.

    P.S.

    Try to remove the res from the path of the image and then try to load the image.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    The thread is in the Mobile Java boards now. For future reference, they are the first set of boards under "Development Platforms" when you open the DiBo main page: http://discussion.forum.nokia.com/forum/

Similar Threads

  1. Adding image to a button using Lwuit.
    By nirbhay007 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-12-29, 08:03
  2. how to display image in lwuit list?
    By hitendrasinh.gohil in forum Mobile Java General
    Replies: 1
    Last Post: 2010-12-23, 09:21
  3. How to install lwuit in netbeans 6.8
    By kumarv75 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-06-02, 09:55
  4. Replies: 0
    Last Post: 2010-04-20, 12: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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved