Article View: borland.public.jbuilder.java.language
Article #17818Re: Frames and Dialog Boxes
From: Richard Ulrich
Date: Sat, 26 Sep 1998 00:00
Date: Sat, 26 Sep 1998 00:00
24 lines
1270 bytes
1270 bytes
Here I go talking to myself again! Of the four ways listed, methods (1), (2), and (3) appear to work, although making the application frame publicly available requires an ugly trick (making a public static variable in Application1() and setting it equal to the main window in the application constructor). Method (4) compiles, but the program hangs when I run it. r Richard Ulrich <rm_ulrich@compuserve.com> wrote in article <01bde88a$f06edc50$d8b5aec7@uai-4>... [snip] > (1) create (and dispose of) a new frame to create each non-primary dialog > box. > > (2) make the application frame public and use that. > > (3) Add a "myFrame" variable to each dialog box so that it keeps a > reference to the frame used in its constructor. > > (4) Create all of the dialog boxes in the main application ... >
Technical Details
Message-ID:
<01bde8f4$1e10e590$8188aec7@uai-4>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bde88a$f06edc50$d8b5aec7@uai-4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,34300cf42693a390 X-Google-Attributes: gidf74b3,public From: "Richard Ulrich" <rm_ulrich@compuserve.com> Subject: Re: Frames and Dialog Boxes Date: 1998/09/26 Message-ID: <01bde8f4$1e10e590$8188aec7@uai-4> X-Deja-AN: 394947625 References: <01bde88a$f06edc50$d8b5aec7@uai-4> Organization: Ulrich Associates, Inc. Newsgroups: borland.public.jbuilder.java.language