Re: How to load image file in Applet?
From: Sam (sam_at_edup.tudelft.nl)
Date: 04/22/04
- Next message: Andrew Thompson: "Re: JTable Tabulator behaviour"
- Previous message: Soeren: "JTable Tabulator behaviour"
- In reply to: Roedy Green: "Re: How to load image file in Applet?"
- Next in thread: Andrew Thompson: "Re: How to load image file in Applet?"
- Reply: Andrew Thompson: "Re: How to load image file in Applet?"
- Reply: Roedy Green: "Re: How to load image file in Applet?"
- Reply: Roedy Green: "Re: How to load image file in Applet?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Apr 2004 08:18:47 -0700
Roedy Green <see@mindprod.com.invalid> wrote in message news:<7hme8051eujjhj2v3qg9bs05tg3ar8h5bb@4ax.com>...
> On 21 Apr 2004 21:38:43 -0700, jennybabee111@yahoo.com.au (Jenny)
> wrote or quoted :
>
> >I need an applet loads and displays an image which is stored on server
> >side.
>
> See http://mindprod.com/jgloss/image.html
>
> The ImageViewer class will help you display an Image in an Applet.
>
> Usually you put the image in the jar along with the Applet and get it
> with getResource.
If you would want your applet to run an executable that lives in the
server, would you do this in the same way? Because I've been trying to
achieve the same type of thing, but I can't get it to work.
My problem is a bit different, I'm trying to build a webservice which
needs to run this executable, but I don't know how to tell the
webservice where the exe lives. Just for testing purposes I tried to
locate a txtfile with soemthing like the following
URL url = this.getClass().getResource("testfile.txt");
String sam = url.toString();
return sam;
but I get an error... I don't know where to put the testfile.txt file
in order for the webservice to find it though
- Next message: Andrew Thompson: "Re: JTable Tabulator behaviour"
- Previous message: Soeren: "JTable Tabulator behaviour"
- In reply to: Roedy Green: "Re: How to load image file in Applet?"
- Next in thread: Andrew Thompson: "Re: How to load image file in Applet?"
- Reply: Andrew Thompson: "Re: How to load image file in Applet?"
- Reply: Roedy Green: "Re: How to load image file in Applet?"
- Reply: Roedy Green: "Re: How to load image file in Applet?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|