×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    8

    How to display Image in netbeans using Lwuit?

    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
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to display Image in netbeans using Lwuit?

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: How to display Image in netbeans using Lwuit?

    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
  •  
×