🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18265

Re: problem: how to set text into a textArea of another class???

#18265
From: Fa.Zeppelin
Date: Fri, 24 Jul 1998 00:00
40 lines
1359 bytes
Thanx Paul,
I figured out something else :

I programmed an Interface with all the textAreas and textFields inside I
want to access from another class.
Then just
class xxxxx implemets Interface
did the job and so I've an overview what's public and what's not !


Jan Hoffman

Paul Furbacher schrieb in Nachricht
<35B78FE7.C1098A5B@bilbo.bio.purdue.edu>...

>public class Frame1 extends ... { // "..." (ellipsis) means I don't have
time
>to write this part
>
>  TextArea  textArea1;
>
>  ...
>}
>
>public class Test {
>
>  public String one = "one";
>  public String two = "two";
>  public String three = "3";
>  ...
>}
>
>Given the above, you would write:
>
>  Frame1 f1 = new Frame1();
>  Test test = new Test();
>  f1.textArea1.setText(test.one);
>
>
>Paul Furbacher
Technical Details
Message-ID: <6p98qi$rk212@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6p4fpu$m943@forums.borland.com> <35B78FE7.C1098A5B@bilbo.bio.purdue.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,27b151933cb563fd
X-Google-Attributes: gidf74b3,public
From: "Fa.Zeppelin" <Fa.Zeppelin@micronet.de>
Subject: Re: problem: how to set text into a textArea of another class???
Date: 1998/07/24
Message-ID: <6p98qi$rk212@forums.borland.com>
X-Deja-AN: 374424859
References: <6p4fpu$m943@forums.borland.com> <35B78FE7.C1098A5B@bilbo.bio.purdue.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Fa.Zeppelin
Newsgroups: borland.public.jbuilder.java.language