How to save text from applet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to save text from applet

Marko.Stenvik-2

     Hi

I am new with applets (and GUI):
Is it possible to save text from applet written to TextArea() to web server
as a file?


Here is the one try
.
.
method start()
  source = BufferedReader(FileReader('EarlierMessages.txt'))
  Loop forever
    msgline = source.ReadLine()
    If msgline = null then
      leave
    setMessage(msgline)

    catch IOException

 end -- loop
.
.
+++    method start()
+++                    ^^^^^
+++ Error: Checked exception 'java.io.FileNotFoundException' is signalled b
ut is not signalled by overriden method
    method buildLayout(SimpleGridBagLayout)
    method setMessage(String)


Can this work at all in applet?  Better/Is there way to do this?

Marko


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>