[5335] in java-interest
RE: stupid question
daemon@ATHENA.MIT.EDU (Groshe)
Tue Feb 6 08:59:16 1996
From: Groshe <gnicaj@iu.net>
To: "'Groshe'" <gnicaj@iu.net>,
"'java-interest@java.sun.com'"
<java-interest@java.sun.com>,
"'James Waldrop'"
<sulam@construct.net>
Date: Thu, 1 Feb 1996 20:08:55 -0500
----------
From: Groshe[SMTP:gnicaj@iu.net]
Sent: Tuesday, January 30, 1996 8:40 PM
To: java-interest@java.sun.com; 'James Waldrop'
Subject: RE: stupid question
Importance: High
James,
If you define a class public - it expects to be just that - public.
So take out public for the classes you don't want to make public i.e
class ImagePanel extends Canvas {
and not
public class ImagePanel extends Canvas {
Groshe
----------
From: James Waldrop[SMTP:sulam@construct.net]
Sent: Monday, January 29, 1996 3:30 PM
To: java-interest@java.sun.com
Subject: stupid question
Ok, so I have a dumb question... ;)
Let's say I am getting a warning like the following:
Foo.java:108: Warning: Public class ImagePanel must be defined in a file called "ImagePanel.java".
public class ImagePanel extends Panel {
^
Foo.java:121: Warning: Public class RenderArea must be defined in a file called "RenderArea.java".
public class RenderArea extends Canvas {
I can stick these in a seperate file, sure, but I'm finding it difficult
to do that and then import them. Also, I see a lot of other applets
with multiple class definitions in one file, so I'm wondering what other
people do to get around this warning.
James
--
James Waldrop / Technical Director
sulam@construct.net / Construct Internet Design
sulam@well.com / http://www.construct.net
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com