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

  • From: Chris von See <chris@xxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 6 Jun 2011 11:09:20 -0700

You need a reference to the shell in order to call dispose on it. Make a reference to the shell available to your method somehow and then call "theShell.dispose()" where "theShell" is the name of the shell reference variable.



On Jun 6, 2011, at 10:56 AM, John J. Boyer wrote:

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: