[5142] in java-interest
Re: stupid question
daemon@ATHENA.MIT.EDU (moessner.markus@ch.swissbank.com)
Tue Jan 30 04:23:26 1996
From: moessner.markus@ch.swissbank.com
Date: Tue, 30 Jan 1996 08:32:25 +0100
To: java-interest@java.sun.com, sulam@construct.net
James,
if you need this classes in this file only just write
class ImagePanel extends Panel {
If you want to use it elsewhere too you have to define it in a own file to
get around this warning.
BTW, sometimes it needs dumb questions... :)
Markus
> 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