Updating the view/refreshing an image [message #664482] |
Sat, 09 April 2011 13:29 |
Hans Missing name Messages: 14 Registered: August 2010 |
Junior Member |
|
|
Hi,
I hope you can help me. Following situtation: I'm loading a view based on a composite. In its constructor im creating dynamically a jfree chart image and saves it temporally on the hard disk. Then I'm loading the image to assign it to a label by calling setImage.
Up to this point everything works fine but when I want to load and assign an other image to that label it doesn't refresh or redraw. I see the old one. I want to assign this new image to the label when someone clicks on a button in the view...
Does anyone know where my problem is? It is not possible to add/change elements in an existing/already created view?
Best regards
mangaka
[Updated on: Sun, 10 April 2011 13:21] Report message to a moderator
|
|
|
Re: Updating the view/refreshing an image [message #664512 is a reply to message #664482] |
Sun, 10 April 2011 15:48 |
Hans Missing name Messages: 14 Registered: August 2010 |
Junior Member |
|
|
I found a clue..
when I use an other name for the new image it will be correctly loaded. therefore the problem is the identical name of the image. rap does not realise that the image was modified and has to be changed. it sends the browser/client the old one when he requests the image.
does anyhone know how to fix this problem?
ps: I'm using Graphics.getImage(String, InputStream) to load the image...
[Updated on: Sun, 10 April 2011 16:04] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 5.03667 seconds