Where should I put the image files?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Where should I put the image files?

  1. #1
    Setya Guest

    Where should I put the image files?


    I have one java app as client app and one java class as server app, when the
    client app instantiates the server app, the server app constructor create
    some button and load image files as the button's icon.

    I put the image files in sub-directory of the server app but the images wouldn't
    load unless I put them in the sub-directory of the client's app, and if I
    do this, I have to put the image files in each of my client's apps sub-directory
    which I consider inefficient.

    How can I overcome this?

    BTW,I use JBuilder 6.0 as my tool.

    Thanks

    Setya

  2. #2
    David W Guest

    Re: Where should I put the image files?


    One possible solution is to make the images available through a Web server
    - then the images can be loaded by specifying a URL.

  3. #3
    MarkN Guest

    Re: Where should I put the image files?


    How often do the buttons change?

    Often? - leave them on the server.
    Seldom? - put them on the client.

    Depending on where your client and server are located you do have other options.
    We currently have nothing loaded on the clients other than the JRE. The
    network hit is small and is the lesser of two evils. We don't have many
    images to load. We have planned for distributing binaries/resources if we
    need to.

    Mark

    "Setya" <jsetya@yahoo.com> wrote:
    >
    >I have one java app as client app and one java class as server app, when

    the
    >client app instantiates the server app, the server app constructor create
    >some button and load image files as the button's icon.
    >
    >I put the image files in sub-directory of the server app but the images

    wouldn't
    >load unless I put them in the sub-directory of the client's app, and if

    I
    >do this, I have to put the image files in each of my client's apps sub-directory
    >which I consider inefficient.
    >
    >How can I overcome this?
    >
    >BTW,I use JBuilder 6.0 as my tool.
    >
    >Thanks
    >
    >Setya



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center