Wrox Programmer Forums
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2005, 03:36 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JNLP API

Hi all!
I have an application JNLP that can't access to local file system, so my query is"how can I transform the code with JNLP API?"
This is the code:
...
try {

File newdir = new File("C:\\", "newdir\\" + mycampolabel.getText());
newdir.mkdir();

} catch (SecurityException se) {
System.out.println("Error -- " + se.toString());
}

...

and

...
try {
FileWriter myfile = new
FileWriter("C:\\newfolder\\"+ "filename" + ".txt", true);

myfile.write(txt.getText());

myfile.close();
}

catch (IOException e) {
System.out.println("Error -- " + e.toString());

}
....

Thanks!
(sorry for my bad english)






Similar Threads
Thread Thread Starter Forum Replies Last Post
API mallik C++ Programming 2 February 20th, 2008 04:03 AM
API Panduchandra Visual C++ 1 March 27th, 2006 11:48 PM
its about the jni API ogriddmut Dreamweaver (all versions) 1 June 29th, 2004 03:05 AM
how to use win32 API? csc820203 C# 1 June 23rd, 2004 02:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.