Article View: borland.public.jbuilder.java.language
Article #18192Re: How to access to a Grid that is in other class?
From: Alberto
Date: Mon, 27 Jul 1998 00:00
Date: Mon, 27 Jul 1998 00:00
26 lines
1451 bytes
1451 bytes
First of all thank you very much to Paul Furbacher.
Your message has been very useful, and I think I have understood the
idea, but I am not able to use it.
From the class (Participantes) I want to use the GridControl and as you
told me I have defined an accesor method:
public void setReferencetoGridEmparejamientos ( GridControl gC)
{
this.gCEmparejamientos=gC;
}
The GridControl is in other class (Emparejamientos) declared in that
way:
GridControl gCEmparejamientos = new GridControl();
So that I have tried to use the accesor method in class Participantes:
setReferencetoGridEmparejamientos
(Emparejamiento.gCEmparejamientos);
but I am told that I can not make a static reference to a non-static
variable.
What am i doing wrong?
Thanks again.
Technical Details
Message-ID:
<35BCB7E3.36134106@clientes.euskaltel.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35B5A940.F66E0E5B@jet.es> <35B78E7C.3F2B7CE8@bilbo.bio.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8defb950e00b3e64 X-Google-Attributes: gidf74b3,public From: Alberto <alga@clientes.euskaltel.es> Subject: Re: How to access to a Grid that is in other class? Date: 1998/07/27 Message-ID: <35BCB7E3.36134106@clientes.euskaltel.es> X-Deja-AN: 375367746 Content-Transfer-Encoding: 7bit References: <35B5A940.F66E0E5B@jet.es> <35B78E7C.3F2B7CE8@bilbo.bio.purdue.edu> To: pf@bilbo.bio.purdue.edu Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language