doSaveAs() for text
doSaveAs() for text
Hello everyone,
The method ChartPanel.doSaveAs () saves the PNG file.
I need to save a text file from an applet.
Since ChartPanel.doSaveAs () runs in an applet,
should be possible to save a text file.
How can I do this?
Thanks in Advance
The method ChartPanel.doSaveAs () saves the PNG file.
I need to save a text file from an applet.
Since ChartPanel.doSaveAs () runs in an applet,
should be possible to save a text file.
How can I do this?
Thanks in Advance
Re: doSaveAs() for text
Hello, remiohead.
Thanks for the quick reply, but it's not what I need.
Look at the bottom of the page:
"Security consideration ... The example programs contained in these lessons are standalone applications, which by default have no security manager."
I have an applet.
All the best.
Thanks for the quick reply, but it's not what I need.
Look at the bottom of the page:
"Security consideration ... The example programs contained in these lessons are standalone applications, which by default have no security manager."
I have an applet.
All the best.
Re: doSaveAs() for text
I believe so long as you sign your applet you can request full security permissions and read/write to the local disk. There are tonnes of tutorials on this subject on the web.
Re: doSaveAs() for text
sorry, remiohead,
i don't need "i belive ...", i need "if ... then... else" and so on.
At least I need a TextWriter or IO.StreamWriter Object, which sits somewhere in org.jfree.chart.ChartPanel.
Hello World, any idea, please!
i don't need "i belive ...", i need "if ... then... else" and so on.
At least I need a TextWriter or IO.StreamWriter Object, which sits somewhere in org.jfree.chart.ChartPanel.
Hello World, any idea, please!
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: doSaveAs() for text
See also What Applets Can and Cannot Do. Alternatively, consider Java Web Start for deployment.
Re: doSaveAs() for text
is not an idea, I can also google.John Matthews wrote:See also What Applets Can and Cannot Do. Alternatively, consider Java Web Start for deployment.
Re: doSaveAs() for text
If your applet is unsigned or not deployed via JNLP you cannot write to the filesystem. That is exactly what the sandbox is there to prevent. Since this isn't even JFreeChart related I suggest you take this topic to another forum.