I am new to Java and I've been trying to setup a frame, but my code does not work, either because the code is just wrong, or because there is something wrong with my software. I am using Eclipse.
So this is my code:
package Frame;
import javax.swing.JFrame;
public class App {
 class FrameApp extends JFrame {
     public static void main(String[] args) {
        JFrame frame = new JFrame("FirstFrame");
        frame.setTitle("MFF");
        frame.setSize(300, 700);
        frame.setVisible(true);
     }  
  }
}
it returns
The method main cannot be declared static; static methods can only be declared in a static or top level type
 
     
    