🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9986

Re: How do I call the method in another JInternalFrame??

#9986
From: John Frazier (Inprise/Borland)
Date: Mon, 06 Dec 1999 00:00
37 lines
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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JInternalFrame sub = new subJIFrame();
><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sub.show();
><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; desk.add(sub);
><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
><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>&nbsp;&nbsp;&nbsp; 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 &amp; 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-mail
References: <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