🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: using methods from within another class

#14906
From: Kevin
Date: Tue, 27 Jul 1999 00:00
26 lines
1261 bytes
Shane,
    I solved the problem before. You can try to add the protected static
fileOpen() ~~~ in the head of that method instead of fileOpen() ~~~, than
call the method in the main class like FilerDialog.fileOpen(). I hope it
help you.
Kevin

Shane Cooper ���g��峹 <7nhmf4$2ib7@forums.borland.com>...
>i have defined a filer dialog and it works fine within the main UI frame.
>
>my problem is that i cannot seem to access the method that opens the dialog
>from within another frame. i have tried defining it as a new class but i
get
>the same error
>
>error: non-static method fileOpen() cannot be referenced from a static
>context.
>
>i use fileOpen(); within the main UI frame. and i call
>FilerDialog.fileOpen() within a subframe;
>
>thanks
>
>shane
>
>
Technical Details
Message-ID: <7nj1uh$3ma8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7nhmf4$2ib7@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,9f334a86a56b84cb
X-Google-Attributes: gidf74b3,public
From: "Kevin" <kevin1645@gcn.net.tw>
Subject: Re: using methods from within another class
Date: 1999/07/27
Message-ID: <7nj1uh$3ma8@forums.borland.com>
X-Deja-AN: 505599904
References: <7nhmf4$2ib7@forums.borland.com>
Organization: Avery
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language