🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFileChooser doesn't pop up in console app

#898
From: John McGrath [TeamB]
Date: Sat, 13 Nov 2004 22:30
31 lines
2198 bytes
On 11/11/2004 at 3:03:35 PM, Benji Shults wrote:

> I am writing what is mainly a console application but
> I would like a JFileChooser to pop up every once in
> a while.  My code works when I run it using java on the
> command line but no JFileChooser pops up when I run it
> under JBuilder.
> 
> Here is a little code to illustrate.  If you comment out
> the console IO, the JFileChooser pops up.  But if you
> do some Console IO, the JFileChooser does not pop up
> under JBuilder.  It works using the Sun command-line
> tools.

You say that it the program works with "the Sun command-line tools", but
you did not say which version you used.  Did you use the same JDK that you
used within JBuilder?

Are you sure that you tested the *exact* same code using the command-line
tools that you used under JBuilder?  I tried the code you posted with JDK
1.5.0, JDK 1.4.2_05 and JDK 1.3.1_03, and it hangs up on the JFileChooser
with all of them.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0dpq0uk1lmy8a002@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4193d3a7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,1f6004e8e376e531
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: JFileChooser doesn't pop up in console app
Newsgroups: borland.public.jbuilder.java.swing
References: <4193d3a7$1@newsgroups.borland.com>
User-Agent: XanaNews/1.16.4.6
Message-ID: <xn0dpq0uk1lmy8a002@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:0000004B
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.12.248
Date: 13 Nov 2004 15:30:23 -0700
X-Trace: newsgroups.borland.com 1100388623 151.197.12.248 (13 Nov 2004 15:30:23 -0700)
Lines: 31
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail