🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FileDialog

#611
From: Boris Condarco
Date: Wed, 21 May 2003 21:31
55 lines
2626 bytes
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: <3ecbef1f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ecba61d@newsgroups.borland.com> <3ecbc6c5@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-21 14:31:36 PST
From: "Boris Condarco" <bcondarco@sbef.gov.bo>
Newsgroups: borland.public.jbuilder.java.api
References: <3ecba61d@newsgroups.borland.com> <3ecbc6c5@newsgroups.borland.com>
Subject: Re: FileDialog
Date: Wed, 21 May 2003 17:31:17 -0400
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 166.114.44.250
Message-ID: <3ecbef1f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053552415 166.114.44.250 (21 May 2003 14:26:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail