🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JDialog Problem

#11458
From: Matt Krevs
Date: Thu, 03 Jun 1999 00:00
21 lines
1330 bytes
call getTopLevelAncestor() to get a handle to the frame that you nested
panels are on.

Matthias Bandemer <matthias.bandemer@gmx.de> wrote in message
news:375585BB.1F9323B5@gmx.de...
> Hi,
>
> I have a problem with creating a JDialog. I want to create a modal
> dialog with titel "Modifying Data". So I use this constructor
>
> JDialog(Frame parentFrame, String title, boolean modal)
>
> but the parent component of this dialog is a panel. This panel is a
> child-component of another panel, which is the contentpane of the
> top-level-frame. Thats why I get an "incompatible types found" message:
> "found component, frame required". How con I access the top-level-frame
> from the JDialog-constructor?
>
> Thanks for help,
>
> Matthias
Technical Details
Message-ID: <7j4fkb$jmc9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <375585BB.1F9323B5@gmx.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c40ee21b1dbc2637
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: JDialog Problem
Date: 1999/06/03
Message-ID: <7j4fkb$jmc9@forums.borland.com>
X-Deja-AN: 485063106
References: <375585BB.1F9323B5@gmx.de>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Matt Krevs" <mattkrevs@flex.com.au>
Newsgroups: borland.public.jbuilder.java.swing