Re: Cannot access class
From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 02/17/04
- Next message: Gordon Beaton: "Re: Socket close does not immediately unbind port?"
- Previous message: Andrew Thompson: "Re: FileNotFoundException for zip files"
- In reply to: James: "Re: Cannot access class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Feb 2004 15:43:46 GMT
James wrote:
> "Andrew Thompson" ...
>> James wrote:
>>> Hi there, I'm trying to create an applet where by there is a bar at
>>> the bottom...
<snip>
> ...I tried putting it in its own file and made
> it 'public' to test if this is what you meant but received the
> 'cannot resolve symbol' errors.
What IDE are you using?
Are you compiling and running
from the command line (DOS)?
> ..I don't think I understand what you
> were saying. I need to revise public and private classes, I think!
Think so, ;-)
The second class was not 'private' but 'default'.
Their cannot be a private class, as nothing else
could access it.
> It works fine the way you wrote it on here, though.
Yes, I tried to make it is simple as possible.
Both class files would end up in the same
directory and should work, without needing
to worry about splitting the file, making
package statements/imports etc.
-- Andrew Thompson * http://www.PhySci.org/ Open-source software suite * http://www.PhySci.org/codes/ Web & IT Help * http://www.1point1C.org/ Science & Technology
- Next message: Gordon Beaton: "Re: Socket close does not immediately unbind port?"
- Previous message: Andrew Thompson: "Re: FileNotFoundException for zip files"
- In reply to: James: "Re: Cannot access class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|