Article View: borland.public.jbuilder.java.language
Article #18140Re: Does a Dialog need a Frame?
From: Rich Downing
Date: Wed, 12 Aug 1998 00:00
Date: Wed, 12 Aug 1998 00:00
36 lines
1983 bytes
1983 bytes
"Thomas Wynne" <twynne@entropy.uark.edu> wrote: > Does anybody know why a Dialog has to have a Frame to be created? For >example, I have three classes, >class A, B, and C. > >Class A is my main class, it does my initializing and database stuff. It >also has a frame with a menu item that calls the dialog in Class B. > >Class B dialog is called with 'this' as the frame parameter. The this, is >referring to the frame in class A. > >In my Class B dialog, I make another call to Class C which brings up yet >another dialog. But to create Dialog C, I had create a bogus frame in class >B to pass as a parameter. > >So to generalize the question, does anybody know why a dialog must have a >frame, and, is the way that I am doing it consistent with everybody else's >methods, or have I just found a way to do it which is going to get me into >some trouble in the future. Thanks in advance. >Thomas Wynne Haven't tried this, but couldn't you just save this "this" from Class A in a variable in Class B, and then just pass that same value to Class C? Regards, Rich ---------------------------------------------------------------------- Richard V. Downing Work email: richard.downing@vsin.com Senior Software Engineer Home email: rvd@mindspring.com VideoConferencing Systems, Inc. Web: http://rvd.home.mindspring.com Norcross, Ga ------------ When surrounded by wolves 'tis best to howl -------------
Technical Details
Message-ID:
<35d2bc1f.10052016@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6qr2vs$3ft3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,14994826d8c972ac X-Google-Attributes: gidf74b3,public From: rvd@mindspring.com (Rich Downing) Subject: Re: Does a Dialog need a Frame? Date: 1998/08/12 Message-ID: <35d2bc1f.10052016@forums.borland.com> X-Deja-AN: 380435358 Content-Transfer-Encoding: 7bit References: <6qr2vs$3ft3@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: mindspring.com Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language