🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to share data between classes in an app.

#20020
From: Martin
Date: Mon, 03 Nov 1997 00:00
23 lines
1193 bytes
 Hi Java people,
 
 Can someone help me with my problem. I do not know how to share
information
 between, for example say a dialog- and a frame class . 
 
 Example:
 
 Let say that my application consists of frame class and dialog class. I
 want to do a calculation in my frameclass but first the user must give the
 variable a value. This variable belong to the dialog class and I must have
 it returned to my frame class. How do I manage that? It must be some kind
 of return statement (parameterlist?) or something like that or is it
possible to define
 global and local variables ? Coding examples are welcome!
 
 Another question: Is it possible to define a function procedure in Java as
 in the C-language (or Delphi/Pascal)?
 
 Best Regards,
 
 Martin Lindgren
Technical Details
Message-ID: <01bce8ab$2eb385a0$bcf8c6c3@FOO.telia.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,59b022adfc377dbf
X-Google-Attributes: gidf74b3,public
From: "Martin" <martin.lindgren@hedemora.mail.telia.com>
Subject: How to share data between classes in an app.
Date: 1997/11/03
Message-ID: <01bce8ab$2eb385a0$bcf8c6c3@FOO.telia.com>
X-Deja-AN: 286843335
Organization: None
Newsgroups: borland.public.jbuilder.java.language