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

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 6 Jun 2011 15:56:27 -0500

Sina,

Nice to see a message from you. As you will note from a previous message 
of mine, the problem was a typo. Those little typos are the bane of 
every programmer.

How is school going? I still have good memories of meeting you at the 
CSUN conference.

John

On Mon, Jun 06, 2011 at 03:37:58PM -0400, Sina Bahram wrote:
> 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
> 
> 

-- 
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: