Results 1 to 4 of 4
  1. #1
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Post Applet Image location

    i want the help regarding on Netbeanswith Applet.

    actually i am creating one applet in that i am going to call one image

    i dont know how and where i can place this image ( i means in which folder or which Dir.)

    so at a time of runnning appet it will get display properly.

    hope u clear my point ...

  2. #2
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default

    plz reply my dear friends as soon as possible

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Place it in your project folder. In that case you can directly refer the image. But the best thing is place all images in a seperate folder. May be in a new folder name images. In that case you have to refer it as images/image_name. Not only that you can place your image anywhere in your PC, but have to refer it with the full path name. It's not best choice, because if you wants to move the project into another place, you have to make some changes in your code too.

  4. #4
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default

    ok fine !.

    but i am asking "Where i can put this image folder in my Netbeans?

    while i using this image in my Applet .

Similar Threads

  1. Image upload applet 2.0
    By jfileupload in forum Java Software
    Replies: 0
    Last Post: 03-24-2008, 04:15 PM
  2. Replies: 0
    Last Post: 01-08-2008, 05:29 PM
  3. how to get the location of some button
    By mary in forum Java 2D
    Replies: 2
    Last Post: 08-05-2007, 04:02 AM
  4. how to place an image in an applet
    By paty in forum Java Applets
    Replies: 2
    Last Post: 08-04-2007, 05:15 PM

Posting Permissions

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