Article View: borland.public.jbuilder.java.language
Article #18811Re: I can't get values from my Dialog Boxes
From: Nathan Kirkham
Date: Fri, 17 Apr 1998 00:00
Date: Fri, 17 Apr 1998 00:00
42 lines
1406 bytes
1406 bytes
Bill,
One way that is commonly recommended is to have public variables in the
Dialog and then access them from the calling method like;
class Dialog
{
public int myInfo
}
private void showDialogMethod()
{
Dialog d = new Dialog();
d.setVisible(true);
// its now done the business
int i = d.myInfo;
// now got the info I need
d = null; // make sure for GC
}
Bill Rooney wrote:
> I created an application. The main frame calls up several Dialog boxes
> where the user needs to enter some info. How do I access, or send this
> info, back to the main frame?
>
> I'm sure there is an obvious answer, but it is escaping me now.
>
> Thanks,
> ----Bill Rooney
--
------------------------------------------
Nathan Kirkham - nathan@result2k.u-net.com
Java Programmer
Result 2000 Plc
Technical Details
Message-ID:
<3537865C.2CB139E@NOSPAM.result2k.u-net.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35376CB8.487CF453@pitt.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9dca12a965860abe X-Google-Attributes: gidf74b3,public From: Nathan Kirkham <nathan@NOSPAM.result2k.u-net.com> Subject: Re: I can't get values from my Dialog Boxes Date: 1998/04/17 Message-ID: <3537865C.2CB139E@NOSPAM.result2k.u-net.com> X-Deja-AN: 345082880 Content-Transfer-Encoding: 7bit References: <35376CB8.487CF453@pitt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Result 2000 Plc Newsgroups: borland.public.jbuilder.java.language