Home arrow static arrow Java Programming [Archive] - Hyperlink in an applet (to save files)
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Hyperlink in an applet (to save files)
This topic has 4 replies on 1 page.

Posts:6
Registered: 8/2/04
Hyperlink in an applet (to save files)  
Aug 3, 2004 9:57 AM



 
Hi All,

I want the user of an applet to be able to save a selected file ussing a button. I was wondering if that might be done with an hyperlink or something like that. How can I add an Hyperlik to a button? Any other ideas?

Thanks much!
 

Posts:105
Registered: 6/8/04
Re: Hyperlink in an applet (to save files)  
Aug 3, 2004 10:23 AM (reply 1 of 4)



 
...how do you intend to save a file using a hyperlink?

More details, please?
 

Posts:6
Registered: 8/2/04
Re: Hyperlink in an applet (to save files)  
Aug 3, 2004 11:11 AM (reply 2 of 4)



 
Ok.. Basically what I want is for the user to be able to save a postscript file (the applet knows the URL), so I thoght if I direct to that URL the browser will try to save it because it is a ps file.
 

Posts:105
Registered: 6/8/04
Re: Hyperlink in an applet (to save files)  
Aug 3, 2004 11:36 AM (reply 3 of 4)



 
Ah, okay; I see what you're saying.

[url=http://java.sun.com/developer/qow/archive/48/index.html]Here[/url] are the instructions for opening a browser window towards a given URL; it might work, but I'm not sure...
 

Posts:6
Registered: 8/2/04
Re: Hyperlink in an applet (to save files)  
Aug 3, 2004 12:18 PM (reply 4 of 4)



 
Thanks a lot. It works as I expected. It might not be the most elegant solution but its a way to get around signing the applet (especially for me since I'm very new in java).
 
This topic has 4 replies on 1 page.