🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #613

Re: FileDialog

#613
From: Kevin Dean
Date: Thu, 22 May 2003 11:39
78 lines
3589 bytes
JFileChooser needs access to the file system, but that access is restricted
if your applet isn't signed.  If you look at the Java Console, you'll
probably see a security exception stack trace.  Details on how to sign
applets may be found at:

http://java.sun.com/products/plugin/1.3/docs/netscape.html

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Boris Condarco" <bcondarco@sbef.gov.bo> wrote in message
news:3ecbef1f$1@newsgroups.borland.com...
> kevin,
>
> I've tried JFileChooser, it works fine when i execute the applet with
> Jbuilder, but, when i load the page with IE6.0 the FileChooser does'nt
> display. I'm using the following code:
>
>   void jButton1_actionPerformed(ActionEvent e) {
>     JFileChooser chooser = new JFileChooser();
>     // Note: source for ExampleFileFilter can be found in FileChooserDemo,
>     // under the demo/jfc directory in the Java 2 SDK, Standard Edition.
>     int returnVal = chooser.showOpenDialog(null);
>     if(returnVal == JFileChooser.APPROVE_OPTION) {
>       System.out.println("You chose to open this file: " +
>                          chooser.getSelectedFile().getName());
>     }
>   }
>
> Any suggestions?
>
> Thanks in advance...
> "Kevin Dean" <NkOdSePaAnM@datadevelopment.com> wrote in message
> news:3ecbc6c5@newsgroups.borland.com...
> > Check out javax.swing.JFileChooser in the online help.  There's a link
> there
> > with a tutorial.
> >
> > --
> > Check out our latest white papers at
> > http://www.datadevelopment.com/papers/index.html
> >
> > BladeNET Scores With Borland Enterprise Tools
> > Team Development with JBuilder and Borland Enterprise Server
> >
> > Dolphin Data Development Ltd.
> > http://www.datadevelopment.com/
> >
> > "Boris Condarco" <bcondarco@sbef.gov.bo> wrote in message
> > news:3ecba61d@newsgroups.borland.com...
> > > Hi,
> > >
> > > I am writing an applet to upload files to my server, so, i would like
to
> > use
> > > a window like the FileDialog to choose files, is there any class or
> > > component to do so?
> > >
> > > I would really appreciate any susggestion and related documentation or
a
> > > little piece of code...!
> > >
> > > Thanks in advance...
> > >
> > > Boris.
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <3eccb80a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ecba61d@newsgroups.borland.com> <3ecbc6c5@newsgroups.borland.com> <3ecbef1f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e8ac71890987d4fd
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-05-22 05:25:02 PST
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3ecba61d@newsgroups.borland.com> <3ecbc6c5@newsgroups.borland.com> <3ecbef1f$1@newsgroups.borland.com>
Subject: Re: FileDialog
Date: Thu, 22 May 2003 07:39:17 -0400
Lines: 80
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.57.150.243
Message-ID: <3eccb80a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053603850 24.57.150.243 (22 May 2003 04:44:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail