Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2005

Tip: Looking for answers? Try searching our database.

run file throught an incoming text

Thread view: 
kubriksCube - 29 Nov 2005 15:38 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.