🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1224

Communications between classes.

#1224
From: Rune Pedersen
Date: Mon, 26 Apr 1999 00:00
33 lines
1747 bytes
Hi!

Communications between classes.

Assume that you have a class named Borders and a class named Colorcheck (the
Colorcheck is an separate file) and you want to send and receive information
between those two classes.


In the first class (Borders) you receive a parameter named mRGBcolor
(default is black), and you want to send this parameter (string) to the
Colorcheck class. The Colorcheck class should then check if the parameter is
ok and then send back the Rcolor, Gcolor and the Bcolor (as a string or an
integer).

// Some parameter code.
try { mRGBcolor = this.getParameter("RGBcolor", "black"); } catch (Exception
e) { e.printStackTrace(); }

// the parameters to transfer and receive from the Colorcheck class.

I have try to this many times, and I can't get it to work.

Hope that someone can give me a good explanation and an example how to do
this.

Hope for a fast replay, because I need an applet that use this on my site :
http://home.sol.no/~rupede

And also please E-mail me your solution, thanks: rupede@online.no

Regards
Rune Pedersen
Technical Details
Message-ID: <PN0V2.301$Ir6.2267@news1.online.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,efc2b7f83fd9a56,start
X-Google-Attributes: gid10d6db,public
From: "Rune Pedersen" <rupede@online.no>
Subject: Communications between classes.
Date: 1999/04/26
Message-ID: <PN0V2.301$Ir6.2267@news1.online.no>
X-Deja-AN: 471102671
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: news-abuse@online.no
X-Trace: news1.online.no 925145327 130.67.4.61 (Mon, 26 Apr 1999 18:48:47 MET DST)
Organization: Telenor Online Public Access
X-MSMail-Priority: Normal
NNTP-Posting-Date: Mon, 26 Apr 1999 18:48:47 MET DST
Newsgroups: aus.computers.java