Hi,
ich habe so ein Programm, welches ein JFrame erzeugt.
Immer wenn ich es kompilieren will, sagt der Compiler mir: "invalid method declaration; return type required"
So, dann schreibe ich statt
aber dann findet der Compiler es nicht mehr
"Test.java:16: cannot find symbol
symbol : class frame
location: class Test
Frame f = new Frame();
^"
Wie kann ich es machen, dass es funktioniert? Oder labere ich von Sachen, die sowieso nicht zusammenpassen ?
MfG bla
ich habe so ein Programm, welches ein JFrame erzeugt.
Immer wenn ich es kompilieren will, sagt der Compiler mir: "invalid method declaration; return type required"
So, dann schreibe ich statt
aber dann findet der Compiler es nicht mehr
"Test.java:16: cannot find symbol
symbol : class frame
location: class Test
Frame f = new Frame();
^"
Wie kann ich es machen, dass es funktioniert? Oder labere ich von Sachen, die sowieso nicht zusammenpassen ?
MfG bla