Article View: borland.public.jbuilder.java.swing
Article #9425Re: Will JFileChooser work in a JApplet?
From: rwilkman
Date: Wed, 15 Mar 2000 00:00
Date: Wed, 15 Mar 2000 00:00
46 lines
2125 bytes
2125 bytes
John: The security manager notices any work with java.io (especially any of the classes reserved for use with File I/O) At least some of the methods in the JFileChooser family of classes work with files, which will make the security manager (for applets) block the use of the component. -Rich "John P. McGrath" wrote: > > On Wed, 8 Mar 2000 10:48:56 -0500, Jeff Marendo wrote: > > > I'd like to try and make an applet that allows a user to > > select .gif files off of the machine that the applet is > > downloaded from. I want to use a JFileChooser to do this, > > but I don't know if it is possible. Can anyone give me > > any suggestions? > > You should be able to do this by creating subclass of FileSystemView and > FileView. You may also need to subclass File. These classes would have > to communicate with objects running on the server that knew about the > actual files and file system. > > I am sure that this would not be a simple task, but it is possible, since > JFileChooser does not do any actual file system access itself. Instead, > it uses FileSystemView and FileView to access it. > > -- > John P. McGrath > <JPMcGrath@fast.net> > <jpm@nscs.fast.net> -- ===== Rich Wilkman Senior Quality Assurance Engineer JBuilder Team If something in this post looks like an opinion, walks like an opinion and quacks like an opinion, it's mine and not that of my employer. If you are reading this from a newsgroup post, don't send mail. =====
Technical Details
Message-ID:
<38CFBE90.3652C3CE@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8a5rtq$70g2@bornews.borland.com> <MPG.13390e7076f731779897f1@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1dd4651986f90e04 X-Google-Attributes: gid111d45,public From: rwilkman <rwilkman@inprise.com> Subject: Re: Will JFileChooser work in a JApplet? Date: 2000/03/15 Message-ID: <38CFBE90.3652C3CE@inprise.com> X-Deja-AN: 597881528 Content-Transfer-Encoding: 7bit References: <8a5rtq$70g2@bornews.borland.com> <MPG.13390e7076f731779897f1@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing