title: gui and main() method
body: <p>I am currently creating a <code>mancala-game</code> in Java. This is what I have so far:</p>
  
  <pre><code>package mancala;
  
  import javax.swing.*;
  
  public class Game  {
  
      private JLabel start;
      private JButton startBtn;
      private JPanel panel;
      private JFrame frame;
  
      public Game(){
          createForm();
          addButtons();
  
          frame.add(panel);
          frame.setVisible(true);
      }
  
      public void createForm() {
          frame = new JFrame();
          frame.setTitle("Mancala");
          frame.setSize(500,500);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }
  
      public void addButtons() {
          startBtn = new JButton("Start");
      }
  }
  </code></pre>
  
  <p>This throws the following error:</p>
  
  <pre><code>Error: Main method not found in class mancala.Game, please define the main method as:
     public static void main(String[] args)
  or a JavaFX application class must extend javafx.application.Application
  </code></pre>
  
  <p>But when I add the <code>main-method</code> it's still broken, what steps do I have to take to make this work?</p>