🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8510

Re: Problems with JFileChooser

#8510
From: Alexis Rios
Date: Thu, 10 Aug 2000 00:00
61 lines
2330 bytes
That happens when any Microsoft product is involved. Example: Windows
Thomas G�lden <Thomas.Guelden@t-online.de> wrote in message
news:8m296g$5ei1@bornews.borland.com...
> I have problems with JFileChooser:
> As soon an object of JFileChooser is instantiated and if JBuilder 3.5 is
in
> debug mode, I get the following error message:
>
> Microsoft Visual C++ Runtime Library:
> Run Time Error:
> Program C:\JBuilder35\jdk 1.2.2\bin\javaw.exe
> Abnormal program termination.
>
> In running the code in JBuilder 3.5 normal mode the program just stops
after
> the JFileChooser showing dialog is dismissed.
>
> To what kind of mistake is the error pointing at ?
>
> The JFileChooser component is contained in a component derived from
JPanel.
> This panel is placed into a JDialog, which opened when the user performs a
> menu action. After the JFileChooser component is dismissed with the
APPROVE
> _OPTION, i.e. the user pressed "Open", another data entry dialog will be
> presented.
>
> Here the code snippet:
>
> public class ImportImageDlg extends JPanel {
>   BorderLayout borderLayout1 = new BorderLayout();
>   public JFileChooser fileChooser;
>   ImageFileView fileView;
>   JPanel preview;
>
>   file://BoxLayout2 boxLayout21 = new BoxLayout2();
>   public ImportImageDlg () {
>     try {
>       jbInit();
>     } catch (Exception e) {
>       e.printStackTrace();
>     }
>   }
>
>   /**
>    * put your documentation comment here
>    * @exception Exception
>    */
>   private void jbInit () throws Exception {
>     fileChooser = new JFileChooser();         file://******** This line
causes
> the error
>     ...          // more code follows
> }
>
> Any hints are greatly appreciated.
>
> Thomas G�lden
> Thomas.Guelden@t-online.de
>
>
Technical Details
Message-ID: <3993199f$1_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8m296g$5ei1@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,486221aff5cf56bc
X-Google-Attributes: gid111d45,public
From: "Alexis Rios" <arios@actpr.com>
Subject: Re: Problems with JFileChooser
Date: 2000/08/10
Message-ID: <3993199f$1_1@dnews>
X-Deja-AN: 656915749
References: <8m296g$5ei1@bornews.borland.com>
X-Trace: 10 Aug 2000 14:07:43 -0800, 207.227.223.78
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200