Article View: borland.public.jbuilder.java.swing
Article #8811Create a Dialog from Design UI?
From: Tom Dorgan
Date: Thu, 13 Jul 2000 00:00
Date: Thu, 13 Jul 2000 00:00
20 lines
1475 bytes
1475 bytes
Hello, Im a newbie to the JBuilder environment (it's great!) as well as to Swing, so this may be a dumb question. I have created a Frame that allows field editing and it works well. I have placed a button on the form that, when clicked, should pop up what I believe should be a Dialog(or should it be a new frame?) which allows the entry of several fields of data. I have several questions on how to accomplish this: 1) How do I layout my dialog in the environment? The dialog option seems always to be grayed out. Do I create a new frame,panel, etc. and stuff to it or what? (Sorry for the vagueness - Im just not clear on this). 2) I am currently believing that the environment doesn't let you "attach" Dialogs to buttons, so I figure I will need to add code in the Button click event to construct and show the dialog. Is this correct? 3) What is a clean, accepted method of communicating the collected data back to the main frame? thanks a lot in advance, tom dorgan.
Technical Details
Message-ID:
<396df77a@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,433b77a33d068963,start X-Google-Attributes: gid111d45,public From: "Tom Dorgan" <tdorgan@netsage.com> Subject: Create a Dialog from Design UI? Date: 2000/07/13 Message-ID: <396df77a@dnews> X-Deja-AN: 645982423 X-Trace: 13 Jul 2000 10:08:10 -0800, 12.74.91.28 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300