Ich weiß nicht, warum, aber ich erhalte eine Fehlermeldung auf meinem Hallo Welt Java-Projekt.Verfahren JFrame ist nicht definiert für den Typ Hello World
?Verfahren JFrame ist nicht definiert für den Typ Hello World“
ich gerade erst begonnen, kann mir bitte jemand den Fehler und die Lösung
package helloworld;
import javax.swing.JFrame;
public class HelloWorld
{
public static HelloWorld HelloWorld;
public final int WIDTH = 800, HEIGHT = 800;
public HelloWorld()
{
JFrame jframe = JFrame();
jframe.setSize(WIDTH, HEIGHT);
jframe.setVisible(true);
}
public static void main(String[] args)
{
HelloWorld = new HelloWorld();
}
}
gut überprüfen, HelloWorld ist auch der Name eines statischen Feldes –
Danke! Das habe ich korrigiert! – GhostCat