🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8641

Re: Calling applis from an appli

#8641
From: John McGrath TeamB
Date: Mon, 05 Mar 2001 08:12
29 lines
2116 bytes
On Mon, 5 Mar 2001 08:12:26 +0100, icsd.jt@wanadoo.fr wrote:

> Can you me specify how to call Zones in Mmenu.
> I have try
>  Zones.CadZ();  // CadZ is the main method of the appli Zones
>  Zones.main() .....
>  but F9 say always to me
>      variable Zones is unknow in class Mmenu 
>          (with or without   import Zones; )

If you are going to directly reference the class Zones from the Mmenu 
class, you will need to add the Zones class to your Mmenu project.  You 
probably want to do this using a JBuilder library.

The other way to use the Zones class from Mmenu would be to use the 
Java Reflection API.  That will allow you to load the Zones class and 
execute its methods based on a string that contains the class name.  
This technique would allow you to create a more general menu program, 
since it does not require that the applications that it runs be known 
at compile time.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.150d0f0263dfc82d98a00b@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
References: <3aa0a077_1@dnews> <MPG.150a9aa7fc92fce5989ffc@forums.borland.com> <3aa10cea$1_2@dnews> <MPG.150b85684df4a28498a003@forums.borland.com> <3aa33b30_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ec6af10449d9afc3
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-05 00:18:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Calling applis from an appli
Date: Mon, 5 Mar 2001 03:12:32 -0500
Organization: Another Netscape Collabra Server User
Lines: 29
Message-ID: <MPG.150d0f0263dfc82d98a00b@forums.borland.com>
References: <3aa0a077_1@dnews> <MPG.150a9aa7fc92fce5989ffc@forums.borland.com> <3aa10cea$1_2@dnews> <MPG.150b85684df4a28498a003@forums.borland.com> <3aa33b30_1@dnews>
NNTP-Posting-Host: dslcv1-60.fast.net
X-Newsreader: MicroPlanet Gravity v2.30