>hi,

I'm learning java. But when I compiled this code in the console 

import java.awt.*;
public class fenster extends Frame
{
  public static void main (String args[])
  {
    fenster hauptfenster=new fenster();
    hauptfenster.reSize (300,300);
    hauptfenster.setLocation (100,100);
    hauptfenster.setTitle ("Das Java Programm!");
    hauptfenster.show();
  }
  public fenster()
  {
   Label ausgabe=new Label ("Hallo Linux-Welt!");
   ausgabe.setAlignment (Label.CENTER);
   add (ausgabe);
   }
}

I got this warning:

javac hallo.java
hallo.java:2: Public class fenster must be defined in a file called 
"fenster.java".
public class fenster extends Frame
             ^
1 error

But I don't know what this warning means. I controlled the code but it was the 
same which the code in the book. I hope you can help me with my problem

Mika
P.S. sorry for my bad english, I'm german
-- 
Privatsphaere muss man selbermachen und selber sicherstellen,
das darf man nicht anderen Leuten ueberlassen!
PGP

--
Use Linux and Open-Source

--
Html gehört ins internet nicht in die E-Mail!


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to