Hi all,
I'm looking for a class that can implement a method for lauching files
throught an applet button.
I know the file class exists but it doesn't have the methods with the
functionality i want.
Can anyone get me a name of an existing class that implements that
functionality, and also the ability to get a piece of text from the
working applet and convert it to an url? the objective is to open a
file when a message get's to the applet...just like in a mail box...
Obrigado.
Oliver Wong - 29 Nov 2005 19:29 GMT
> Hi all,
>
[quoted text clipped - 6 lines]
> working applet and convert it to an url? the objective is to open a
> file when a message get's to the applet...just like in a mail box...
What does it mean to "launch a file" in this context? My mail box
certainly doesn't launch any files.
- Oliver
kubriksCube - 30 Nov 2005 11:46 GMT
> > Hi all,
> >
[quoted text clipped - 11 lines]
>
> - Oliver
What i mean is how to open a file.
Oliver Wong - 30 Nov 2005 15:04 GMT
>> > Hi all,
>> >
[quoted text clipped - 13 lines]
>
> What i mean is how to open a file.
I get the feeling that you do not want to open the file with your
program though, but rather to cause the file to be opened by whatever
application is registered to handle it according to the OS.
- Oliver
Roedy Green - 30 Nov 2005 17:08 GMT
>I'm looking for a class that can implement a method for lauching files
>throught an applet button.
I think what you mean is to launch the associated viewer.
That requires platform specific code. You need to launch a command
processor such as cmd.exe and pass it the file as a parameter name. It
then looks up the association, launches the viewer, and passes it the
file name as a parameter.
See http://mindprod.com/jgloss/exec.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.