🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Need help for Dialog Box creation in MDI java app

#9767
From: Ernesto Bascón Pantoja
Date: Mon, 24 Jan 2000 00:00
38 lines
1558 bytes
Hi:

Try to pass a application frame reference to your dialog box.
Something like this:

// At application frame
public static JFrame applicationFrame = this;

// At JInternal frame
JDialog d = new JDialog(MainFrame.applicationFrame, "", true);

I dunno if this is an elegant solution, but it worx!

Saludos

Ernesto

Jay Guha wrote:
> 
> Hi folks,
> 
> I am trying to create an AboutBox (essentially a dialog box) in a Java
> MDI app which uses JInternal frames. The dialog generators gen a class
> derived via JDialog which take a JFrame object as a constructor
> .Unfortunately the MDI apps do not like JFrame, it need JInternetFrame
> objs.
> 
> Please advice how to create an AboutBox in a MDI java app using
> JInternalFrame.
> 
> Thanks
> 
> Jay Guha....

-- 
--------------------------------------------------------
		Hand fits giving, so do it
--------------------------------------------------------
Technical Details
Message-ID: <388C571F.F0E8EAF1@ucbcba.edu.bo>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <388C5133.66FD9A6A@dfgnet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2a17f5800588a9ec
X-Google-Attributes: gid111d45,public
From: Ernesto Bascón Pantoja <bascone@ucbcba.edu.bo>
Subject: Re: Need help for Dialog Box creation in MDI java app
Date: 2000/01/24
Message-ID: <388C571F.F0E8EAF1@ucbcba.edu.bo>
X-Deja-AN: 576902784
Content-Transfer-Encoding: 7bit
References: <388C5133.66FD9A6A@dfgnet.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: UCB
Mime-Version: 1.0
Reply-To: bascone@ucbcba.edu.bo
Newsgroups: borland.public.jbuilder.java.swing