🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JDialog behaves differently according to where I call it

#11794
From: David M. Hewitt
Date: Wed, 24 Mar 1999 00:00
17 lines
1235 bytes
George Tryfon wrote:

> This dialog behaves different according to where I call it.
> It is a kind of progress indicator dialog that has a cancel button
> The dialog I am referring to is the DlgWait
> If I call the Frame.go from the main, then everything works fine.

Take a look at SwingWorker.java (you can find it in www.javasoft.com/jdc) for a
good
class to use to offload calculations to a different thread from the swing
thread.

Without spending much time, your problem IS probably related to swing thread
handling and what can be called when.  Take a look at the documentation for
invokeLater() and invokeAndWait.

Dav id
Technical Details
Message-ID: <36F96112.11B309AC@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7d7f8s$k4u20@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5d75d4f2f4d6bd51
X-Google-Attributes: gid111d45,public
From: "David M. Hewitt" <azzigoom@home.com>
Subject: Re: JDialog behaves differently according to where I call it
Date: 1999/03/24
Message-ID: <36F96112.11B309AC@home.com>
X-Deja-AN: 458671623
Content-Transfer-Encoding: 7bit
References: <7d7f8s$k4u20@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing