Article View: borland.public.jbuilder.java.api
Article #3445Unable to create a dialog
From: Jim Albert
Date: Wed, 17 Dec 1997 00:00
Date: Wed, 17 Dec 1997 00:00
31 lines
1282 bytes
1282 bytes
When attempting to compile the following code I get "Constructor:
debtbuilder(java.awt.Frame, boolean) not found in debtbuilder". When
I look in debtbuilder.java I find debtbuilder(Frame frame, boolean
modal). I'm not sure any of this will run. I'd like to get it to
compile.
This is my first real attempt at java,
I'm hoping the light comes on soon!
Any ideas what I'm doing wrong?
THANK YOU,
Jim
CODE
------------------
void btnDebtBuild_actionPerformed(ActionEvent e) {
//Get a frame for the dialog
Container cnt = this.getParent();
while (!(cnt instanceof Frame)) {
cnt = cnt.getParent();
}
Frame frm = (Frame)cnt;
//Instantiate the dialog
debtbuilder dlg = new debtbuilder(frm, true);
dlg.show();
}
Technical Details
Message-ID:
<34987bc9.9084134@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,4bd53c1fc20acdf2,start X-Google-Attributes: gid1089d0,public From: jim@pinsystems.com (Jim Albert) Subject: Unable to create a dialog Date: 1997/12/17 Message-ID: <34987bc9.9084134@forums.borland.com> X-Deja-AN: 298955718 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: PIN Systems Mime-Version: 1.0 Reply-To: jim@pinsystems.com Newsgroups: borland.public.jbuilder.java.api