Thread View: aus.computers.java
1 messages
1 total messages
Started by Rune Pedersen
Mon, 26 Apr 1999 00:00
Communications between classes.
Author: Rune Pedersen
Date: Mon, 26 Apr 1999 00:00
Date: Mon, 26 Apr 1999 00:00
33 lines
1747 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads