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
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.
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