[brailleblaster] Re: Here's one for the Java experts.

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Mon, 6 Jun 2011 15:37:58 -0400

It means that that method is not declared as static, which means you need an 
instance of that class, as an object, before calling
that method.

Either declare that method as static, or change your call to be on an object 
instead of on the class of that object, which it is
right now.

Take care,
Sina






-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx 
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
Sent: Monday, June 06, 2011 1:57 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Here's one for the Java experts.

In one of my methods the compiler complains about the statement 
Shell.dispose(); It says I can't call a nonstatic method in a static 
context. The method in which this statement occurs is not static. It was 
moved from another class in which there was no problem.

I can provide the code, of course, but I thought you might be able to 
answer this one from your experience.

Thanks,
John

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities



Other related posts: