🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get values from a popup JDialog

#1310
From: John McGrath [TeamB]
Date: Sat, 03 Jan 2004 00:18
22 lines
1868 bytes
On 12/30/2003 at 5:01:47 PM, Sven Goetgeluck wrote:

> was wondering if you cannot put the dispose in the was cancelled
> function of the dialog , or is this wrong because thats the way i do
> it

Yes, but there is a big difference between "cannot" and "should not".  

In Paul's code, the purpose of the wasCanceled() method is to indicate
whether the dialog was canceled.  If you have that code dispose of the
dialog, that is not doing what most people would expect the method to
do.  The example code Paul gave that calls the dialog would work, but
if someone wrote some slightly different code, it might not.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3ff61876@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fd84325$1@newsgroups.borland.com> <3fd8b96f$1@newsgroups.borland.com> <3ff1f5ca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,336ccfd53d4a7a21
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-01-02 17:39:26 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: How to get values from a popup JDialog
Newsgroups: borland.public.jbuilder.java.swing
References: <3fd84325$1@newsgroups.borland.com> <3fd8b96f$1@newsgroups.borland.com> <3ff1f5ca@newsgroups.borland.com>
User-Agent: XanaNews/1.15.8.5
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.151.21.107
Message-ID: <3ff61876@newsgroups.borland.com>
Date: 2 Jan 2004 17:18:46 -0700
X-Trace: newsgroups.borland.com 1073092726 141.151.21.107 (2 Jan 2004 17:18:46 -0700)
Lines: 22
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail