Article View: borland.public.jbuilder.java.swing
Article #8696Re: Problems with JFileChooser
From: Josh Prokop
Date: Tue, 01 Aug 2000 00:00
Date: Tue, 01 Aug 2000 00:00
64 lines
2440 bytes
2440 bytes
Thomas,
Are you using the HotSpot vm? I was getting the same Microsoft error
until I upgraded to HotSpot. It's available at the Sun site.
Josh
"Thomas G�lden" wrote:
>
> 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;
>
> //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(); //******** 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:
<3986FC52.3FE158AF@mediaone.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: Josh Prokop <jprokop@mediaone.net> Subject: Re: Problems with JFileChooser Date: 2000/08/01 Message-ID: <3986FC52.3FE158AF@mediaone.net> X-Deja-AN: 653262753 Content-Transfer-Encoding: 8bit References: <8m296g$5ei1@bornews.borland.com> To: Thomas Gülden <Thomas.Guelden@t-online.de> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing