0

i try to make project with notepad and debug it with cmd and I got an error for class Gui_Started is public, should be declared in a file named Gui_Started.java public class Gui_Started extends JFrame{

import javax.swing.JFrame;

public class Gui_Started extends JFrame{
    public static void main(String[] args) {

        Gui_Started gui = new Gui_Started();
        gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        gui.setSize(500,500);
        gui.setVisible(true);
        gui.setTitle("Gui Pertama");

    }
}
Blasanka
  • 18,202
  • 10
  • 89
  • 96

0 Answers0