Article View: borland.public.jbuilder.java.language
Article #14632Re: invoking methods in other classes
From: Marcel van den Dungen
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
26 lines
1283 bytes
1283 bytes
hi, i think the solution is as follows the methods must be called from an instance of the BeanPanel. eg beanPanel.method(x,y) or you should declare the methods in the BeanPanel class static, after which they can be called eg BeanPanel.method(x,y) bye casper Maoro-Server wrote: > hi, oncemore a question about invoking methods in other classes. > I have a bean-class and a Form class which is called by a button on the > bean-class beanpanel. > From the form i try to invoke methods that are defined in the bean-class. > I always get the err-msg: "non static method"" cannot be referenced from a > static context" > my Form is not static. Does anyone know a way to invoke my methods without > setting them static? > > matze
Technical Details
Message-ID:
<37AEAC37.A726CBD1@c-content.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7om3qg$71i4@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c745494aa2b0f29d X-Google-Attributes: gidf74b3,public From: Marcel van den Dungen <info@c-content.nl> Subject: Re: invoking methods in other classes Date: 1999/08/09 Message-ID: <37AEAC37.A726CBD1@c-content.nl> X-Deja-AN: 510547462 Content-Transfer-Encoding: 7bit References: <7om3qg$71i4@forums.borland.com> Organization: C-CONTENT b.v. Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language