[1038] in java-interest

home help back first fref pref prev next nref lref last post

Information exchange between objects

daemon@ATHENA.MIT.EDU (Paul Beerkens)
Thu Aug 17 09:56:51 1995

From: Paul Beerkens <beerkens@prl.philips.co.uk>
Date: Thu, 17 Aug 1995 09:49:27 +0100
To: java-interest@java.sun.com

Hello all,

I have a problem with exchanging information between objects. I tried to declare a variable with a global scope but that was not possible.

What I want to do can be showed best by an example:

class Test extends Applet {
  int Matrix [] [];

  public void init ()
  {
	Matrix=new int [100] [100];
	startup IwantToAccessMatrix;
  };

  public void mouseDown (int x,y)
  {
	change matrix
  };
};

class IwantToAcessMatrix extends thread
{
  public void run ()
  {
	action according to matrix status
  }
};


Will someone please explain how I can do this. Please , please, please

Paul



-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post