Article View: borland.public.jbuilder.java.swing
Article #1368Re: Dialog box association
From: Gillmer J. Derge (TeamB)
Date: Tue, 16 Dec 2003 17:28
Date: Tue, 16 Dec 2003 17:28
13 lines
1556 bytes
1556 bytes
"Matthew Sweet" <matthew.sweet@sed.redstone.army.mil> wrote in message news:3fdf2537$1@newsgroups.borland.com... > I can't get to the Frame component from that > last JPanel class to pass it into the JDialog class I created. (JFrame)SwingUtilities.windowForComponent(panel); Since windowForComponent returns a Window, you might want to verify that it's an instance of JFrame before casting it, but this shows the basic idea. -- Gillmer J. Derge (TeamB)
Technical Details
Message-ID:
<3fdf40cd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3fde2463@newsgroups.borland.com> <3fde265c$1@newsgroups.borland.com> <3fdf2537$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,55c92298dba121d1 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-16 09:35:18 PST From: "Gillmer J. Derge \(TeamB\)" <spam@gillmerderge.com> Newsgroups: borland.public.jbuilder.java.swing References: <3fde2463@newsgroups.borland.com> <3fde265c$1@newsgroups.borland.com> <3fdf2537$1@newsgroups.borland.com> Subject: Re: Dialog box association Date: Tue, 16 Dec 2003 12:28:49 -0500 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 64.185.133.49 Message-ID: <3fdf40cd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071595725 64.185.133.49 (16 Dec 2003 09:28:45 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail