Article View: borland.public.jbuilder.java.language
Article #17474Re: referrencing
From: Greg Hamer
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
27 lines
1649 bytes
1649 bytes
I am assuming that the message "maybe something has not been intiialised" is a
comper error. If so, that is because you need to assign someithing to 'something'
before you use it. somehow you need to get something = prog1.something so you can
accomplish what you are trying to do.
Jonathan wrote:
> I have created a frame, in one place, however, i want another program in
> same package to call a component on this frame, more specifically
>
> textFieldControl1.setText(....);
>
> now the problem is because i created the frame in a diferent program, how
> do i get another program to set a components text.
>
> Before you answer- i tried the following
>
> prog1.java
> MyFrame something = new MyFrame// carr5ied out in the frame program
>
> prog2.java
> MyFrame something; // in another program
> something.textFieldControl1.setText("fdhdfjfk") // this gives me an error
> it says that maybe soemthing
> has not been initialised
>
> what do i do to get aroung this problem
Technical Details
Message-ID:
<3648EF7A.2C62F09E@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01be0195$70a6b140$881aea9e@ukp10008>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a3b5519178b0f6eb X-Google-Attributes: gidf74b3,public From: Greg Hamer <ghamer@inprise.com> Subject: Re: referrencing Date: 1998/11/10 Message-ID: <3648EF7A.2C62F09E@inprise.com> X-Deja-AN: 410536744 Content-Transfer-Encoding: 7bit References: <01be0195$70a6b140$881aea9e@ukp10008> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language