Article View: borland.public.jbuilder.java.swing
Article #9986Re: How do I call the method in another JInternalFrame??
From: John Frazier (Inprise/Borland)
Date: Mon, 06 Dec 1999 00:00
Date: Mon, 06 Dec 1999 00:00
37 lines
2008 bytes
2008 bytes
On Mon, 06 Dec 1999 11:22:34 +0800, ERic <eric.yu@usa.net> wrote:
><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
><html>
>Please help me, if you can.....
><p>I have two JInternalFrame: "mainJIFrame", and "subJIFrame"; I use the
>manuitem(jMenuItem1) in main JInternalFrame
><br>to open the subJInternalFrame:
><br> ...
><br> JInternalFrame sub = new subJIFrame();
><br> sub.show();
><br> desk.add(sub);
><br> ...
><p>In subJIFrame, I also write a simple method(boolean) to make sure that
>subJIFrame has finish it's job.(get user's info)
><p>.....
><br>Boolean OK = false:
><br>.....
><br>.
><br>.
><br>.....
><p>public boolean isok() {
><br> return OK;
><br>}
><br>....
><p>My problem is, now, I want to call the isok() in mainJIFrame; I use
>the "sub.isOK()", but I got an error............mainJIFrame & subJIFrame
><br>are in the same package, why can't I just use "sub.isok()"??? ( In
>Dialog, I can just use this way to get the isok().......)
><p>Thanks for your attention, appreciate for your help!!!
><p>ERic</html>
Please do not post in HTML to these newsgroups.
John Frazier (Inprise/Borland)
http://www.borland.com/devsupport/disclaim.html
Technical Details
Message-ID:
<U0dMOMorNErZvpkwMkBpLffJCENA@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<384B2BF9.E4F5F512@usa.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bb4ba7521b6147be X-Google-Attributes: gid111d45,public From: "John Frazier (Inprise/Borland)" <supportinfo@borland.com> Subject: Re: How do I call the method in another JInternalFrame?? Date: 1999/12/06 Message-ID: <U0dMOMorNErZvpkwMkBpLffJCENA@4ax.com> X-Deja-AN: 557510309 Content-Transfer-Encoding: 7bit References: <384B2BF9.E4F5F512@usa.net> Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing