Results 1 to 2 of 2
  1. #1
    gavin.87 is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Image Storage help

    Hi,

    I am creating a text based java adventure using a java swing client that shows images at certain events during the game. Is there a way of storing the image in a way that when transferring the game from one laptop to another, you do not need to change the path to the image within the code.

    eg.
    C:\\Users\\user1\\Desktop\\New folder\\OOProj\\images\\sherlock.jpg

    i want to move it to
    C:\\Users\\user2\\OOProj\\images\\sherlock.jpg



    this is the path to the image in my game. can the image file itself maybe be stored within a jar file so that you will always reference it in the game.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

Similar Threads

  1. Actual Storage
    By java software in forum Java Software
    Replies: 0
    Last Post: 10-08-2011, 05:39 PM
  2. Cloud storage
    By jammas615 in forum Forum Lobby
    Replies: 0
    Last Post: 10-06-2011, 07:34 AM
  3. Mass storage
    By MIA6 in forum New To Java
    Replies: 4
    Last Post: 11-02-2009, 06:22 PM
  4. Array storage
    By Stev0 in forum New To Java
    Replies: 6
    Last Post: 04-17-2008, 07:18 AM
  5. String byte storage
    By bozovilla in forum New To Java
    Replies: 1
    Last Post: 11-24-2007, 06:35 AM

Tags for this Thread

Posting Permissions

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