Help with netbeans
- From: ebe <miniskirt7a@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 10:21:20 -0800 (PST)
Hi,
I am trying to deploy a netbeans application on a server. The problem
is that it uses frames, and I have re-written it so that it updates an
imageComponent on the webapp page.
The code look like this:
try {
File outputfile = new File("/saved.jpg");
ImageIO.write(im1, "jpg", outputfile);
write1("Image saved\n");
} catch (IOException e){
write1("Image not saved\n");
}
//****************
//* Need to transfer im1 to image1 to paint it on the screen
//****************
image1.setUrl("/saved.jpg");
The variable im1 is a bufferedImage and the variable image1 is the
imageComponent that exists on the webapp, webpage.
But, the problem is that puts the filename as the URL, but does not
show the image. I checked the image is valid. Also, I tried using
system.SetProperty("java.awt.headless=true","true") before doing this
re-write.
Any suggestions,
Diana
.
- Follow-Ups:
- Re: Help with netbeans
- From: gwoodhouse@xxxxxxxxx
- Re: Help with netbeans
- Prev by Date: Updating documents in Lucene
- Next by Date: Re: JAVA/ US CITIZEN/ CONTRACT/ IN
- Previous by thread: Updating documents in Lucene
- Next by thread: Re: Help with netbeans
- Index(es):
Relevant Pages
|